The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone,
I am trying to do a break out of the revenue using different columns and filter. I am trying to seperate the revenue between region hunting and farming.
Here is the dax I created:
For some reason it is not working and not calculating correctly.
Hoping someone can help.
Appreciate much.
Solved! Go to Solution.
Hi @lorenz0210
You can try the following measure
Regional Account Hunting =
CALCULATE (
SUM ( '2024 - Sales Performance (S+V)'[Finance Projection 2024 (Split) (converted).amount] ),
FILTER (
'2024 - Sales Performance (S+V)',
'2024 - Sales Performance (S+V)'[Regional Account Flag]
IN { "EMEA", "US Market" }
&& '2024 - Sales Performance (S+V)'[User TP Selling Role] IN { "Hunting" }
)
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello everyone again,
I tried this dax just to make sure numbers are calculating correctly:
You can use Matrix Visuals, keep region in Rows, keep selling roles in columns and finance projection in values.
you can filter out the region and selling roles that you don't want in the filter pane
Proud to be a Super User! | |
Can you share the pbix file and expected output?
Proud to be a Super User! | |
Here is the expected output:
Hi @lorenz0210
You can try the following measure
Regional Account Hunting =
CALCULATE (
SUM ( '2024 - Sales Performance (S+V)'[Finance Projection 2024 (Split) (converted).amount] ),
FILTER (
'2024 - Sales Performance (S+V)',
'2024 - Sales Performance (S+V)'[Regional Account Flag]
IN { "EMEA", "US Market" }
&& '2024 - Sales Performance (S+V)'[User TP Selling Role] IN { "Hunting" }
)
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Yolo,
Thank you. The dax works. Although one more dax I am trying to solve:
Is there a simple way to fix this:
Hi @lorenz0210
You can try the following measure.
Hunting S+V =
CALCULATE (
SUM ( '2024 - Sales Performance (S+V)'[Finance Projection 2024 (Split) (converted).amount] ),
FILTER (
'2024 - Sales Performance (S+V)',
'2024 - Sales Performance (S+V)'[User TP Selling Role] = "Hunting"
&& NOT ( '2024 - Sales Performance (S+V)'[Regional Account Flag]
IN { "EMEA", "US Market", "AMERICAS", "EUROPE & APAC" } )
)
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.