Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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 |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
30 | |
18 | |
11 | |
7 | |
5 |