Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
Sorry I'm useless. I cant figure this out.
I have this measure which works well but I don't wan't it to count up past todays date. Is it possible to amend this dax to do that?
Thank you.
Solved! Go to Solution.
Hi @FlankyPank2___ ,
I create a table as you mentioned.
Then I create a measure and here is the DAX code.
Measure =
VAR _max =
MIN ( TODAY (), MAXX ( ALLSELECTED ( 'Date24-25' ), 'Date24-25'[Date] ) )
VAR _min =
MINX ( ALLSELECTED ( 'Date24-25' ), 'Date24-25'[Date] )
RETURN
DATEDIFF ( _min, _max, DAY ) + 1
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @FlankyPank2___ ,
I create a table as you mentioned.
Then I create a measure and here is the DAX code.
Measure =
VAR _max =
MIN ( TODAY (), MAXX ( ALLSELECTED ( 'Date24-25' ), 'Date24-25'[Date] ) )
VAR _min =
MINX ( ALLSELECTED ( 'Date24-25' ), 'Date24-25'[Date] )
RETURN
DATEDIFF ( _min, _max, DAY ) + 1
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I Can' thank you enough - That works wonderfully
Why not try TODAY() instead of Max Date?
Joe
Proud to be a Super User! | |
Date tables help! Learn more
Hi, thanks for replying.
I've tried adding in today() in various places but tbh I dont understand the majority of dax yet & i'm just winging it.
i'll get there.
Thank you
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
72 | |
62 | |
51 | |
48 |
User | Count |
---|---|
206 | |
90 | |
62 | |
59 | |
57 |