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.
Hi guys,
I would like to filter my query in PowerQuery with my Date column. I would like to keep all data till 2 months ago (so from todays view it would be till 24/09/2020)
What's the equivalent in DAX?
Any ideas?
Thank you very much! 🙂
iiomarioii
Solved! Go to Solution.
Hi @iiomarioii ,
You can't write DAX in power query, you can only go to some DAX in desktop
According to your description, I created some data to show:
Here are the steps you can follow:
1. Create measure.
Measure =
CALCULATE(SUM('Table (2)'[amount]),FILTER('Table (2)','Table (2)'[Date]<=DATE(YEAR(TODAY()),MONTH(TODAY())-2,DAY(TODAY()))))
2. Result.
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @iiomarioii ,
You can't write DAX in power query, you can only go to some DAX in desktop
According to your description, I created some data to show:
Here are the steps you can follow:
1. Create measure.
Measure =
CALCULATE(SUM('Table (2)'[amount]),FILTER('Table (2)','Table (2)'[Date]<=DATE(YEAR(TODAY()),MONTH(TODAY())-2,DAY(TODAY()))))
2. Result.
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
maybe you can create a new table
Table 2= FILTER(Table, [date]>=edate(today(),-2))
Proud to be a Super User!
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |