Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi guys, I am having trouble calculating gross margin levels based on sale volumes across my various product catagories. Would if be easier to create a calculated Column or a measure to do this?
I have created a measure such as this but it is coming up blank at times even though I know the sales amount fall within these catagories.
A measure is the right approach as the result can be impacted by user filter choices.
But your measure uses other measures, and it is impossible to judge without seeing the code for these.
Your FILTER() is a bit excessive, can probably be rewritten as
GM% Levels = CALCULATE([Gross Margin %],ALLSELECTED(ORDHDT01[PRD PC]),[Total Sales]<=10000)
User | Count |
---|---|
21 | |
14 | |
11 | |
7 | |
5 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |