Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi
My requirement is to caluclate 12monthsrollingaverage from the selection daterange.
For that I need to store max value in measure so that can use this date in my further calculation.
I tried using SelectedValue() and AllSelected() but nothing worked.
Thanks
Sukanya
Solved! Go to Solution.
Hi @SukanyaN,
IThanks for the reply from 3CloudThomas.
I have made a simple demo for your reference:
MaxDateSelected =
MAXX(
FILTER(
'Table',
'Table'[DELDATE] <= MAX('Table'[DELDATE])
),
'Table'[DELDATE]
)
Regards,
Qi
Hi @SukanyaN,
IThanks for the reply from 3CloudThomas.
I have made a simple demo for your reference:
MaxDateSelected =
MAXX(
FILTER(
'Table',
'Table'[DELDATE] <= MAX('Table'[DELDATE])
),
'Table'[DELDATE]
)
Regards,
Qi
Create a table in PowerQuery with the SQL SELECT MAX(DATECOLUMN) FROM TABLENAME. This will create a one column one row table with the maximum date from the table. Use it in your measures.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
79 | |
54 | |
39 | |
35 |
User | Count |
---|---|
102 | |
82 | |
48 | |
48 | |
48 |