Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello everyone,
I have this table
coming from a big fact table which contains dates (Start & end date of campaing). This table concerns aggragated data.
My dashboard also have this date slicer
which is coming from a date table and have no relationship with the fact table.
How is it possible to filter the aggragated table with the slicer dates by using a measure a DAX?
Thank you!
Hi , @IliasKatsis
You can use the FILTER() function, and the ALLSELECTED() function to filter your fact table like this:
var _min_slicer = MIN('Date'[Date])
var _max_slicer = MAX('Date'[Date])
var _t=FILTER(ALLSELECTED('fact table'), 'fact table'[Date] >=_min_slicer && 'fact table'[Date] <= _max_slicer )
return _t
Then you can get the table you want, and then you also can use MAXX() and MINX() and so on functions you want to get the value.
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @IliasKatsis
Why aren't you connecting the date table to the fact table so you can filter with the slicer? This is the way PBI is intended to work. Looks like you are making things hard for yourself??
Regards
Phil
Proud to be a Super User!
Thanks for your answer but i want to achieve a spesific type of filtering now and the table connection does not help me
Thank you!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 39 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |