The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
137 | |
99 | |
74 | |
60 | |
59 |
User | Count |
---|---|
263 | |
125 | |
115 | |
94 | |
79 |