Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi community,
I use the code below to generate many benchmarks (Budget, YoY, last 2 yr, last mo, last 2 mo).
It's work well when test with full month data.
Solved! Go to Solution.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @tanat_inc
Please correct me if I wrongly understood your question.
Please try to change measures something like below in order show it only until the date that has the display value.
=>>>
IF (
ISBLANK ( [Display Value] ),
BLANK (),
CALCULATE (
'02_m_budget'[Display Value],
DATEADD ( 'd_date_table'[Date], -1, MONTH )
)
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Sorry for long time missing, was sick.
When I test the code you provided in simple model, it's work. However it does not work well in my model, may be because '02_m_budget'[Display Value] is a measure that already contain filter itself and it also reference to another measure as below :
Sorry for long time missing, was sick.
I don't know why but that way work well in my testing file but does not work well for my project. May be because of '02_m_budget'[Display Value] is multiple hierachy measure that contain many filter inside.
Since it work well and look clean, I've already mark it as solution for other to search.
However I got it to work by the idea suggested by you, but the code seems to be messed. Could you suggested the simpler way to get the same result ?
Yes, I just tried to test on option 2 only before move on. Your first message is already clear, just that I want to test first. Unfortunately it does not work.
I put [Display Value] and [Benchmark] together in Line and clustered chart below, and it's work well (It doen't extended my x-axis to Arpil 30)
However when I put [Benchmark] on display card next to the chart, it calculate from 1/4/2020 - 30/4/2020, instead of 1/4/2020 - 12/4/2020.
I will try to modify the data before sending you pbix, but it should take some times.
Thanks for your kindness.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |