March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have a problem getting the DAX with the following example:
I have a source data of Product Group and Sales
I created a Product Group Filter.
I created a custom measure using the following DAX:
Total Product Group = CALCULATE(SUM('Table'[Sales]), ALL('Table'[Product Group]))
I set an Edit Interaction on the visualization to be excluded from the Product Group filter for the Total Product Group measure so that it will always display sales of all product no matter what the product filter are selected.
Question : The DAX formula will actually return all Product Group Sales, but i want to exclude Product Group E, how can i modify the DAX to exclude Product Group E? I am actually able to get the correct value for Total Product Group by using Edit Interaction and defining Page Filter. However, I am unable to get the Product Weightage as i am unable to extract a value that is filter using Edit Interaction and Page Level Filter. FYI, i am using Card as the visualisation to display these values.
Thanks.
Best Regards,
Roy
Solved! Go to Solution.
Hi @roytap,
You can create two measures below:
Total Product Group = CALCULATE(SUM(Sheet1[Sales]), FILTER(ALL(Sheet1),Sheet1[Product Group]<>"E"))
Product weightage = DIVIDE(CALCULATE(SUM(Sheet1[Sales])),[Total Product Group])
For more information, you can see attached pbix file.
Best Regards,
Qiuyun Yu
Hi @roytap,
You can create two measures below:
Total Product Group = CALCULATE(SUM(Sheet1[Sales]), FILTER(ALL(Sheet1),Sheet1[Product Group]<>"E"))
Product weightage = DIVIDE(CALCULATE(SUM(Sheet1[Sales])),[Total Product Group])
For more information, you can see attached pbix file.
Best Regards,
Qiuyun Yu
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
202 | |
137 | |
106 | |
70 | |
68 |