The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have an issue with the following measure that works ok except for the month 9 (September).
=CALCULATE([Rev Master],DATESBETWEEN(Period[[Month]]],IF(MONTH(TODAY())>=9,DATE(YEAR(TODAY()),9,1),DATE(YEAR(TODAY())-1,9,1)),IF(MONTH(TODAY())=9,TODAY(),EDATE(TODAY(),-1))))
What changes shoud I make to fix this ?
Solved! Go to Solution.
1. The code seems to be incorrect, DATESBETWEEN's first argument should contain Date column, that column doesn't seem like a Date column in your code
2. The way of asking the question is wrong, don't just paste code and expect others to answer, always provide the data and the screenshot of issue that you are facing.
1. The code seems to be incorrect, DATESBETWEEN's first argument should contain Date column, that column doesn't seem like a Date column in your code
2. The way of asking the question is wrong, don't just paste code and expect others to answer, always provide the data and the screenshot of issue that you are facing.
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
8 |