March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Thanks for helping, I've dug through all the posts and tried what seems to help but I can't get my totals to work when I am using values from an IF measure.
I have a table of actual data, that the measure uses if there has been product packed in that month. If nothing has been packed, it uses Projection data from a different table.
Here is the measure:
No matter what I do, the totals only include the actual data and not the projections.
Any help is much appreciated!
Solved! Go to Solution.
Try
ProductPacked =
SUMX (
VALUES ( 'Date'[Year Month] ),
IF (
SUM ( 'Company Product'[Product Packed] ) > 0,
SUM ( 'Company Product'[Product Packed] ),
MAX ( Projections[Product Packed] )
)
)
instead of doing the SUMX over the year column you need to do it over the year month column.
Try
ProductPacked =
SUMX (
VALUES ( 'Date'[Year Month] ),
IF (
SUM ( 'Company Product'[Product Packed] ) > 0,
SUM ( 'Company Product'[Product Packed] ),
MAX ( Projections[Product Packed] )
)
)
instead of doing the SUMX over the year column you need to do it over the year month column.
Thank you! that works,
is there a way I can add FILTER into that to include the CROP YEAR filter? Crop year is a text field, not a date. and it doesn't align with a traditional Jan-Dec year, so it makes my life extra interesting.
Instead of 'Date'[Year Month] you can use whichever field you are using on the columns of your matrix.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
22 | |
19 | |
17 | |
9 | |
5 |
User | Count |
---|---|
37 | |
29 | |
16 | |
14 | |
12 |