Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi team
Currently when I use this formula:
Solved! Go to Solution.
Hi, @GraceTCL
According to your description and sample pictures, I can clearly understand your meaning, and I think the AllExcept() function can perfectly help you to achieve the expected output, you can transform the measure like this:
This is the test data I created based on your picture:
Sum of revenue =
CALCULATE(SUM(Sales[Revenue]),ALLEXCEPT(Sales,Sales[Date],Sales[Vertical]))
Then I created three slicers and a card chart to make a test:
And you can get what you want.
More info about the AllExcept() function in DAX
You can download my test pbix file below
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @GraceTCL
According to your description and sample pictures, I can clearly understand your meaning, and I think the AllExcept() function can perfectly help you to achieve the expected output, you can transform the measure like this:
This is the test data I created based on your picture:
Sum of revenue =
CALCULATE(SUM(Sales[Revenue]),ALLEXCEPT(Sales,Sales[Date],Sales[Vertical]))
Then I created three slicers and a card chart to make a test:
And you can get what you want.
More info about the AllExcept() function in DAX
You can download my test pbix file below
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@GraceTCL , Not very clear, Try like
Vertical_Revenue = CALCULATE([Revenue],Filter(allselected('Sales'),'Food data'[Vertical] = max('Food data'[Vertical]) && 'Food data'[Date] = max('Food data'[Date])))
@amitchandak Thanks for your reply.
My apologies. Let me rephrase as above suggestion doesn't work. Hope you can advise!
My current dax formula should be like that as per eg:
Vertical_Revenue = CALCULATE([Revenue],ALLEXCEPT('Sales','Sales'[Vertical],'Sales'[Date]'))
And the expected results and wrong results are:
Essentially, I dont want the Vertical summation to be affected by the explicit filters on all the subsegments. However, it has to be the sum of revenue in the selected verticals based on the selected date range.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 35 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 72 | |
| 39 | |
| 35 | |
| 23 |