Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi there,
please help me.
my sumx function isnt working for a total qty measure i calculated.
I have my Qty measure where I am replacing my empty rows with the previous values as such
final Qty =
Solved! Go to Solution.
Hi @yve214 ,
According to your description, please try this code:
Iterative Qty =
IF (
HASONEVALUE ( date[date_dt] ),
[final Qty],
SUMX ( VALUES ( date[date_dt] ), [final Qty] )
)
Additionally, please see if this blog helps: Learn How to Fix Totals and Subtotals in DAX
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much for ahelping. Unfortunately in this instance it didnt work. Still got the same result but I can see how this will help with every other generic situation so thank you.
Hi @yve214 ,
Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.
Best Regards,
Community Support Team _ kalyj
Hi @yve214 ,
According to your description, please try this code:
Iterative Qty =
IF (
HASONEVALUE ( date[date_dt] ),
[final Qty],
SUMX ( VALUES ( date[date_dt] ), [final Qty] )
)
Additionally, please see if this blog helps: Learn How to Fix Totals and Subtotals in DAX
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
9 |