Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
So I have this table output:
So I have a delivery with multiple materials.
But some of these materials (see for example the yellow) have 2 log dates.
The correct Quantity for this material would be 2 and not 4 (when I would take out the date)
Made QCorr like :
Solved! Go to Solution.
Opsss... I copied badly the measure:
QCorr = SUMX(VALUES('Table'[Material]),[sumSc])
Hi @rpinxt
I have created an auxiliary sum to get the maximum value in case of several rows:
sumSc = CALCULATE(MAX('Table'[Quantity]), FILTER(ALLEXCEPT('Table','Table'[Material]), 'Table'[LogDate]=MAX('Table'[LogDate])))
And now, in QCorr:
QCorr = SUMX(VALUES('Table'[Material]),IF(DISTINCTCOUNT('Table'[Material])>1,[sumSc],SUM('Table'[Quantity])))
You don't need any "MaxLog" column
Thanks @mlsx4 but look on the second row....it says 4 and should be 2.
Yes your total of 102 is correct but if you sum all the line separate you will again get 122.
Opsss... I copied badly the measure:
QCorr = SUMX(VALUES('Table'[Material]),[sumSc])
Yes thanks @mlsx4 this seems to work.
But you need to remove the date colunns.
This is part of a bigger thing.
I have more countries, deliveries and months etc.
I should all go into a stacked column chart.
With periods on the x-axis where I link a date field (maxlog) to a date table (auto).
Wondering if it will give the correct output.
But will test. Thanks for this!
I think you shouldn't include those columns in the table or they will be added to the sum. If you just leave delivery, material and qcorr, it should work.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
75 | |
62 | |
51 | |
47 |
User | Count |
---|---|
212 | |
82 | |
61 | |
60 | |
57 |