Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
22 | |
12 | |
8 |
User | Count |
---|---|
76 | |
50 | |
46 | |
16 | |
12 |