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,
I have need a measure on days remaning based on the month or months selected in the slicer
1. If month is previous month the days remaining would be 0
2. If mont is current month the days remaining would be total days in month minus days passed in the month
3. If month is future month the days remaining would be Total days in the month
If Current month and future month is selcted then the remaning days would be 2 +3
@Anonymous
Can you try the below and let me know whether it matches your requirement
No of Days = IF(
SELECTEDVALUE('Table'[Date].[MonthNo])<MONTH(Today()),
0,
IF(
SELECTEDVALUE('Table'[Date].[MonthNo])=MONTH(Today()),
EOMONTH(Today(),0)-Today(),
(EOMONTH(Today(),0)-Today())+(EOMONTH(DATE(YEAR(Today()),SELECTEDVALUE('Table'[Date].[MonthNo]),1),0)-Today())))
User | Count |
---|---|
123 | |
76 | |
62 | |
50 | |
50 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |