March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I currently have a line bar chart showing today's date:
Using this measure with Date dimension and fact table:
Today maxx =
VAR __released = MAXX( ALLSELECTED( 'Calendar'[Date] ), 'Table'[sum of values] )
VAR __disbursements = MAXX( ALLSELECTED( 'Calendar'[Date] ), 'Table'[sum of values] )
RETURN
IF(
MAX( 'Calendar'[Date] ) = TODAY(),
MAX( __released, __disbursements )
)
However I'm trying to return the actual value that occurs today in the tooltip (as you can see my tooltip states that it's blank because there is no value for today.
Is there a way to return the closest value with a RELATED measure or something?
Using pbix here:
Thanks in advance.
Solved! Go to Solution.
Hi @Anonymous ,
Check the formula.
max_not_blank =
var max_not_blank_date = CALCULATE(MAX('Table'[Date]),FILTER(ALL('Table'),'Table'[Date]<=TODAY()&&[sum of values]<>BLANK()))
var max_not_blank = SUMX(FILTER(ALL('Table'),'Table'[Date]=max_not_blank_date),[sum of values])
return
max_not_blank
Best Regards,
Jay
Hi @Anonymous ,
Check the formula.
max_not_blank =
var max_not_blank_date = CALCULATE(MAX('Table'[Date]),FILTER(ALL('Table'),'Table'[Date]<=TODAY()&&[sum of values]<>BLANK()))
var max_not_blank = SUMX(FILTER(ALL('Table'),'Table'[Date]=max_not_blank_date),[sum of values])
return
max_not_blank
Best Regards,
Jay
This is perfect! Thanks
One last question (if it can't be done then dont worry about it) but is there a way to have the [max_not_blank] measure return as one point/line on the date axis (like images above)
This is what I'm getting, the answer is correct but just trying to get it into a daily point / line
Many thanks again
Hi @Anonymous ,
Not quite understand. Isn't it a line now? You are using line chart, so I don't think it could be shown as points (Unless change the line color to white and show the marker as a different color). Perhaps Line and Column Chart?
Best Regards,
Jay
Apologies I meant a vertical line not a horizontal line, this is what I have based on your recommendation.
I'll continue to play with the formatting to see if I can get closer to the single point for today value.
@Anonymous , Based on what I got, You need to create a measure like
Today maxx =
VAR _max = MAXX( filter(ALLSELECTED( 'Calendar'[Date] ),'Calendar'[Date] <=Today())
RETURN
calculate('Table'[sum of values], filter(ALLSELECTED( 'Calendar'[Date] ),'Calendar'[Date] =_max))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |