Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
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.
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.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
8 | |
6 |