Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I am creating a measure like this
Solved! Go to Solution.
I think you have a few options with this. You can perform the calculation as a calculated column. For every Row Un-Allowcated * SalesUnprice. Then simply wrtie a measure for that calculated column. Or you can use SUMX.
That would look like the following.. SUMX( <Table>, UnAllocated Column * SalesUnit Price)
This sumx will iterate through the granularity put in table. It can be very expensive if your fact table is very large, if that is the case I recommend performing a calculated column. The X functions are great when you create a small summarize/filtered list that should need to be itterated through. Try getting close and post if you don't get it. Also if need help implementing please publish the tables and relationships needed for this measure.
I think you have a few options with this. You can perform the calculation as a calculated column. For every Row Un-Allowcated * SalesUnprice. Then simply wrtie a measure for that calculated column. Or you can use SUMX.
That would look like the following.. SUMX( <Table>, UnAllocated Column * SalesUnit Price)
This sumx will iterate through the granularity put in table. It can be very expensive if your fact table is very large, if that is the case I recommend performing a calculated column. The X functions are great when you create a small summarize/filtered list that should need to be itterated through. Try getting close and post if you don't get it. Also if need help implementing please publish the tables and relationships needed for this measure.
User | Count |
---|---|
21 | |
19 | |
12 | |
9 | |
7 |
User | Count |
---|---|
30 | |
27 | |
14 | |
13 | |
10 |