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 Expert
I have the following DAX measure - which shoul dgive me the number of days left in any given month if the period is iin the past then zero. if current month and future day then work out how many days left in those period... but cannot see error
Workdays Left in Month = IF(INT(EOMONTH(TODAY(),0) - TODAY())<TODAY(),BLANK(),INT(EOMONTH(TODAY(),0) - TODAY()))
Solved! Go to Solution.
Hi @Anonymous,
If you have a model like it in the attachment. You can try this formula.
Measure = IF ( EOMONTH ( MIN ( 'Calendar'[Date] ), 0 ) <= EOMONTH ( TODAY (), -1 ), 9999, IF ( TODAY () IN VALUES ( 'Calendar'[Date] ), DATEDIFF ( TODAY (), EOMONTH ( TODAY (), 0 ), DAY ), DAY ( EOMONTH ( MIN ( 'Calendar'[Date] ), 0 ) ) ) )
Best Regards,
Dale
Hi @Anonymous,
If you have a model like it in the attachment. You can try this formula.
Measure = IF ( EOMONTH ( MIN ( 'Calendar'[Date] ), 0 ) <= EOMONTH ( TODAY (), -1 ), 9999, IF ( TODAY () IN VALUES ( 'Calendar'[Date] ), DATEDIFF ( TODAY (), EOMONTH ( TODAY (), 0 ), DAY ), DAY ( EOMONTH ( MIN ( 'Calendar'[Date] ), 0 ) ) ) )
Best Regards,
Dale
User | Count |
---|---|
119 | |
78 | |
59 | |
52 | |
48 |
User | Count |
---|---|
171 | |
117 | |
61 | |
59 | |
53 |