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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
bbass82
Frequent Visitor

MEASURE INCORRECT? or Should I be using a Calculated Column?

Hi All,

 

Hope all is well. I am new to power BI and having a problem which I think is probably a simple mistake in the measure DAX calculation. I am simply trying to get the difference in dollars (risk) that I am seeing by subtracting my (Shipped dollars) - (Forecast dollars) but for some reason my totals are coming out incorrectly. 

 

I am thinking have something to do with my column set of 'MonthYear' not being able to be recongized in my measure and thinking I need to add something into the DAX for this but not sure what part of the text string I need to change. 

 

Here is my Matrix:

bbass82_0-1732307844819.png

Here is my current DAX calculation for 'Unmatched Risk' (difference):

bbass82_1-1732307902929.png

 

Any help getting my totals to be correct would be greatly appreciated as I really hope someone can point out what I am doing wrong and why. 

 

Thank-you for your time,

Brandon 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @bbass82 ,

 

try like:

measure =

SUM(table[ship...]) - SUM(table[Actual...])

View solution in original post

3 REPLIES 3
v-xingshen-msft
Community Support
Community Support

Hi All,
Firstly  FreemanZ thank you for your solution!
And @bbass82 ,According to the example data created by ourselves, your formula can run normally in our test environment, if you can provide relevant example data or pbix files, it can better help you solve the problem, looking forward to your reply!

vxingshenmsft_0-1732601257843.png

 

FreemanZ
Super User
Super User

hi @bbass82 ,

 

try like:

measure =

SUM(table[ship...]) - SUM(table[Actual...])

Thank-you FreemanZ, this solution worked perfectly for what was needed in my matrix. I greatly appreciate your help and apologize for the delay in response. 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors