The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
13 | |
9 | |
7 |