Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have a table like this:
I need to get a table with just the last month information. So in this example, it would be dates just since 26/11/2022.
I have tried
Dummy tables:
https://drive.google.com/drive/folders/10nBzXYPfSuO87Sjl4_BkOdC2kVxQuDai?usp=share_link
Anyone could help me with this DAX expression? Thanks in advance!
Solved! Go to Solution.
hi @Laocsulak
try to write the table like this:
Date_Goal =
VAR _maxdate = EDATE( MAX(TableName[Date]), -1) +1
RETURN
CALCULATETABLE(
TableName,
TableName[Date]<=_maxdate
)
hi @Laocsulak
try to write the table like this:
Date_Goal =
VAR _maxdate = EDATE( MAX(TableName[Date]), -1) +1
RETURN
CALCULATETABLE(
TableName,
TableName[Date]<=_maxdate
)
Thanks! It solved the problem, changing the last inequality, using >= instead of <=.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
13 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
14 | |
13 | |
12 |