I am trying to create a dax formula that shoud do this :
|Region A (Country A+B)||35||0||32||4299||500||7||67||0||0||0||0|
|Region B(Country C+D)||0||98||45||0||687||1620||1195||78||64||15||2|
How can I replicate this?
Solved! Go to Solution.
sorry , it is the same problem but with another column to filter.
Basically I want to achieve the same result as before :
but instead of having just the value I want to filter the value per source... if it is 0 in country A and 25 in country B (Country A+ country B= region A) then region A will be 0.
did you understood?
here is the image:
and measure used to fix the total:
Result = SUMX ( SUMMARIZE ( Data, Months[Month], Countries[Region], "@Result", VAR _valuelist = VALUES ( Data[Value] ) RETURN IF ( 0 in _valuelist, 0, CALCULATE ( SUM ( Data[Value] ) ) ) ), [@Result] )
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.