Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply

Wrong total with dax measure

Hallo Anybody

 

Hope someone can help me:-)

 

I have this measure: 

 

Forbrugt Antal = IF(SUM('Optælling linjer'[Basis enheder]) <> BLANK(),
CALCULATE(SUMX('Optælling linjer','Optælling linjer'[Basis enheder]),USERELATIONSHIP(aabningsdage[ID_LastDay],'Optælling linjer'[ID_day]))
+
(CALCULATE(SUMX(Vaerdiposter, Vaerdiposter[Invoiced_Quantity]),Vaerdiposter[Day_7_Count]="false")*-1)
-
SUMX('Optælling linjer', 'Optælling linjer'[Basis enheder]),BLANK())
 
And here is the result:
 
dax measure.jpg
I need the total calculated by the showing collums!!
 
Best regards
Andreas
4 REPLIES 4
wdx223_Daniel
Super User
Super User

@andreasalleslev  is it work to add a sumx out of your measure, iterating on year and month?

Hallo

 

I not shure what yoy mean. I have tryet to use sumx so some you se in the measure. 



AlB
Community Champion
Community Champion

Hi @andreasalleslev 

Can you share the pbix? or a pbix with dummy data that repros the issue?

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

Hallo

 

Thank for ypu answar, I will try to make af file with dummy data and send to you.

 

Best regards Andreas

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.