Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Solved! Go to Solution.
@charlie_lugosi
I modified the measure, please try now:
WOD =
SUMX(
VALUES('WO_ISSUE'[Issued]),
VAR WMINUSD=CALCULATE(MIN('WO_ISSUE'[BasePriceUSD]),ALLSELECTED('WO_ISSUE'[WO]))
VAR WMINLC=CALCULATE(MIN('WO_ISSUE'[BasePriceLC]),ALLSELECTED('WO_ISSUE'[WO]))
RETURN
IF (MIN('CurrencyChoice'[Currency])="US$",CALCULATE(SUM('WO_ISSUE'[BasePriceUSD]))-WMINUSD,CALCULATE(SUM('WO_ISSUE'[BasePriceLC]))-WMINLC)
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@charlie_lugosi
I took your measure and used SUMX to iterate over WO_ISSUE'[Issued] field values and sum. at line level one value is visible and the measure shows the same value but at the total level, it goes through each value and aggregate. I used CALCULATE to set the context transition as well.
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@charlie_lugosi
What do you expect at the total level?
You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.
________________________________________________________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thanks for the instruction, below link for the PBIX file.
What I expected that the WOD column total is the total of the underlying rows.
@charlie_lugosi
I modified the measure, please try now:
WOD =
SUMX(
VALUES('WO_ISSUE'[Issued]),
VAR WMINUSD=CALCULATE(MIN('WO_ISSUE'[BasePriceUSD]),ALLSELECTED('WO_ISSUE'[WO]))
VAR WMINLC=CALCULATE(MIN('WO_ISSUE'[BasePriceLC]),ALLSELECTED('WO_ISSUE'[WO]))
RETURN
IF (MIN('CurrencyChoice'[Currency])="US$",CALCULATE(SUM('WO_ISSUE'[BasePriceUSD]))-WMINUSD,CALCULATE(SUM('WO_ISSUE'[BasePriceLC]))-WMINLC)
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thanks very much, excellent.
Would you please be kind giving a short explanation?
Thanks
@charlie_lugosi
I took your measure and used SUMX to iterate over WO_ISSUE'[Issued] field values and sum. at line level one value is visible and the measure shows the same value but at the total level, it goes through each value and aggregate. I used CALCULATE to set the context transition as well.
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.