Power BI DAX help

Spooner_C

New Member
Joined
Aug 27, 2015
Messages
3
Hi,
I've been using PowerBI for a few months at my company but have just started to play around with creating my own measures using DAX and was looking for some help as it's all new to me and what I'm trying to do seems quite daunting to me. I'm going to convert the details of my actual data to an equivalent scenario, using sales as an example, but hopefully it still makes sense...

I have a dataset which includes a CUSTOMERS table (includes name of customer), SALES table (includes order count and order value) and PRODUCTS table (includes product name and product category).

Firstly I'm trying to create a report which shows the top 10 products sold with the number of orders in each product, % of total orders, value of orders in each product, and value as a % of total value. I note that when I use the standard 'Top N' filter the % of orders and % of value only show the % of the top 10, rather than % of grand total.

Then also for each of those 10 products I want to show all the names of customers who ordered them with the same values, i.e. number of orders and value of orders, but I want the percentages to show as a % of the parent row total (e.g. what % of sales in that particular product were ordered by that particular customer).

I don't know if it makes any difference but in terms of how I will be using the report, I'll be filtering the report by product category and producing a separate report for each category. E.g. I will look at 'Stationery' and want a report to show top 10 stationery products and the customers who ordered those products, then I will do the same by filtering to e.g. 'Food' and look at the top 10 food products.

Finally, I intend to export each report to PDF, but the visualisation will not fit on one page, so I was hoping to do the first 5 products on one page, then the next 5 on the next page. I understand that using RANKX may help with this, then just filter the first visualisation to show rank 1-5 and the second to show 6-10, but what would be the DAX for this in my example (I had a go myself but it never seemed to load the visualisation).

Thanks
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,215,659
Messages
6,126,074
Members
449,286
Latest member
Lantern

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top