Percentage of subtotal

Hi all,
I think is something simple, but I’m trying to get the % of subtotal by product like in the image below.

Desired Results

Here is a sample .pbix
Product Sample.pbix (29.3 KB)

Thanks,
DJ

@DeanJ

Create measure

Product Sample.pbix (33.1 KB)

2 Likes

Thanks @Rajesh I will give this a try!

@Rajesh,
Thanks for the solution.
small suggestion. Replacing ALL with ALLSELECTED will work well when if location and product use as the slicers.

@akila789

Thanks for your suggestion. Which one to use depends on business requirement, how they want to see final results.

If they want to see % Of Sub Total across all products in the location then they have to use All.
If they want to see % Of sub Total only on selected products then we can use All selected.

There are many ways to improve performance of the DAX, but we don’t know exact data model.

1 Like

Hi @DeanJ, did the response provided by the users and experts help you solve your query? If not, how far did you get and what kind of help you need further? If yes, kindly mark the thread as solved. Thanks!