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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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.
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/
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.
User | Count |
---|---|
98 | |
78 | |
77 | |
49 | |
26 |