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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.