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
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 |
---|---|
117 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |