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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Euro0681
Helper II
Helper II

Calculated Measure will not display any values unless using Specified Column??

I am trying to calculate the difference between "Expected received" date and "Actual received Date" by using DateDiff().

Both come from two different tables Expected = Table1(expectedReceivedDate) && Actual = Table2(actualReceivedDate), both tables are related to each other. The calculation works and displays correct values.
The issue im having is the calculate measure only displays values when using the "Actual Received Date" Column in my Visual, WHY??? (live connection mode)
Reference Picture Below!

Euro0681_0-1665087393135.png

 

5 REPLIES 5
AilleryO
Memorable Member
Memorable Member

Hi,

 

It is because you are using the SELECTEDVALUE function which is supposed to receive the value from the context (visual) filtered down to one value.

Unless you're using another function (VALUES, MAX, MIN...) you will be "forced" to have the columnin your visual.

Let us know what you finally did ?

This is what i figured as this was my last attempt before asking, as im trying to find a work around. I will post if a solution is found!

 

Hi @Euro0681 ,

 

Has your problem been solved? If so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yinliw-msft
Community Support
Community Support

Hi @Euro0681 ,

 

This may be the measure problem. I test the data below:

Measure:

Measure = ABS(DATEDIFF(MAX('Table'[Actual Receipt Date]),MAX('Test Table'[Expected Receipt Date]),DAY))

And it can show the measure correctly.

Could you please provide your measure functions?

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This solved the issue of having to use the specified column, but not the calculation is incorrect (as seen in the image below).  I also exluded the abs() as i need negative numbers to count the orders that arrived early

My Original Measure:
Measure = DateDiff(SelectedValue('Table1'[Actual Receipt Date), SelectedValue('Table2'[Expected Receipt Date]),DAY)

Euro0681_0-1665155833649.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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