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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I am producing a Matrix that shows customer deliveries of fuel for each month of the year.
I also have a second page with various tables and graphs including one that sums the gallons by category (product). There are two different measures being used. The 'Adj Qty' has the correct quantity for '01C Commercial Propane' and the other, 'Gallons', has the correct value for '01R Residential Propane'. Other values are correct.
I can't seem to get a measure to get the correct values for all products.
Here are the two measures.
Adj Qty = SUMX(History,History[qty] * RELATED(category[inv_multiplier]))
Gallons = (SUMX(HISTORY, IF(History[HIST_TRAN_TYPE]= 5, [Adj Qty] * -1,[Adj Qty])))
Could someone help with a measure that will provide the correct values for all products?
Here is the model.
Thanks much,
Bud
Solved! Go to Solution.
You could add a measure like this:
Mixed Unit Value =
CALCULATE (
[Adj Qty],
KEEPFILTERS ( category[CATEGORY] = "01C" )
) +
CALCULATE (
[Gallons],
KEEPFILTERS ( category[CATEGORY] <> "01C" )
)It calculates measure [Adj Qty] for category 01C and [Gallons] for all other categories.
You could add a measure like this:
Mixed Unit Value =
CALCULATE (
[Adj Qty],
KEEPFILTERS ( category[CATEGORY] = "01C" )
) +
CALCULATE (
[Gallons],
KEEPFILTERS ( category[CATEGORY] <> "01C" )
)It calculates measure [Adj Qty] for category 01C and [Gallons] for all other categories.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 22 | |
| 20 | |
| 20 | |
| 14 | |
| 14 |