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.
How to convert below SQL query to a DAX measure. The 'date' case structure should be dymanic to get last 4 months data.
Hi @Anonymous
Your SQL language is complex. Could you provide me with your data model and a screenshot of the result you want? And this will make it easier for me to understand your require.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
a 1:1 translation makes no sense in my opinion.
You can filter and transform the data with Power Query while importing data.
In the report you can then visualize the data in a matrix.
The last 4 months can be filtered using a relative date filter.
Its a live connection. Can't do any changes in Power query. Need a DAX measure for same.
Hi @Anonymous ,
can you share a screenshot of the table from the Power BI model view?
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 |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |