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 September 15. Request your voucher.
Hello,
I need some help with some dax. I need to find the first of the TOTALMTD() however it needs to be based on the previous day.
Examples:
This is what I have so far:
I can't seem to get the filters to work correctly. Any help is appreciated.
Solved! Go to Solution.
Hi @BlueTeam1
VAR end_ = 'Calendar'[Date]-1
VAR start_ = DATE(YEAR(end_), MONTH(end_), 1)
and then you can use those vars in the filter operation You do not specify if this is to be used in a measure or a calc column. If the former, you´ll need a SELECTEDVALUE( ) in end_
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @BlueTeam1
VAR end_ = 'Calendar'[Date]-1
VAR start_ = DATE(YEAR(end_), MONTH(end_), 1)
and then you can use those vars in the filter operation You do not specify if this is to be used in a measure or a calc column. If the former, you´ll need a SELECTEDVALUE( ) in end_
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
20 | |
11 | |
10 | |
7 |