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
Hello,
I have had a good read of the forums, but I cannot find an answer that works for me so looking for some more help please.
The SUMX measure is not giving the total I would expect (the sum of all the rows), which is 7,477,673 (see pivot below). I think this is throwing out the NaN values in the matrix.
The measure and matrix is working perfectly for company 3 however, does anyone know why? PBIX link
below https://1drv.ms/u/s!As8wMr9_bgGrgWHiaY16y4XdpEnn?e=wBkO8L
This @v-cazheng-msft is a follow on of your help @tamerj1
Thanks for your time
Solved! Go to Solution.
Hi,
Thank you for your feedback.
Could you please check the below picture and the attached pbix file?
Measure total fix: =
SUMX (
SUMMARIZE (
FactAccountsReceivable,
FactAccountsReceivable[Voucher],
FactAccountsReceivable[Customer Key]
),
[Test Group NZD Balances]
)
Amount Per Bucket =
CALCULATE (
[Measure total fix:],
FILTER (
VALUES ( FactAccountsReceivable[Voucher] ),
VAR FromDays =
MIN ( 'Aging Groups ATB'[From] )
VAR ToDays =
MAX ( 'Aging Groups ATB'[To] )
RETURN
[Days Over 2] > FromDays
&& [Days Over 2] <= ToDays
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please try the below measure.
Sorry that I could not fully understand your measure, however, the cause of not providing correct total might be solved by writing the below measure additionally.
Measure total fix: =
SUMX( VALUES( FactAccountsReceivable[Voucher]), [Test Group NZD Balances] )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi @Jihwan_Kim
Thanks so much for your reply, that works great, do you know why I am getting the NaN error for the 90+ day bucket when the just looking at the bucket level? Thanks again!
Hi,
Thank you for your message.
It is quite difficult for me to check without understanding what your DAX measures are looking for.
Could you please try the below measure and please let me know if it provides the correct outcome or not.
Amount Per Bucket =
SUMX (
VALUES ( 'Aging Groups ATB'[Bucket] ),
CALCULATE (
[Measure total fix:],
FILTER (
VALUES ( FactAccountsReceivable[Voucher] ),
VAR FromDays =
MIN ( 'Aging Groups ATB'[From] )
VAR ToDays =
MAX ( 'Aging Groups ATB'[To] )
RETURN
[Days Over 2] > FromDays
&& [Days Over 2] <= ToDays
)
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi @Jihwan_Kim , thanks again for your time. I would like the Dax measure to show the correct total for for each bucket ( the individual rows are correct), the matrix with the detail is correct, you can see Age 90+ days and the total has a NaN error in the table on the right, where I would like to see the 1009, and total of 7,477k? Much appreciated!
Hi,
Thank you for your feedback.
Could you please check the below picture and the attached pbix file?
Measure total fix: =
SUMX (
SUMMARIZE (
FactAccountsReceivable,
FactAccountsReceivable[Voucher],
FactAccountsReceivable[Customer Key]
),
[Test Group NZD Balances]
)
Amount Per Bucket =
CALCULATE (
[Measure total fix:],
FILTER (
VALUES ( FactAccountsReceivable[Voucher] ),
VAR FromDays =
MIN ( 'Aging Groups ATB'[From] )
VAR ToDays =
MAX ( 'Aging Groups ATB'[To] )
RETURN
[Days Over 2] > FromDays
&& [Days Over 2] <= ToDays
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
40 | |
32 | |
29 | |
12 | |
11 |