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.
I have a table visual made up of multiples fields/columns from multiples linked tables.
I need to filter the main tables by two seperate columnes (both of which are date values) (i.e. show clients that have a date within one column and no date within another).
I cannot seem to create a formula to filter the table by.
What is the best way to go about this?
Solved! Go to Solution.
See this CALCULATETABLE() definition by SQLBI, and the Related Articles section at the bottom. You can set filters in CALCULATETABLE() on a number of columns. It is best if the data has relationships between the tables you are working on and not get involved in using TREATAS() on unrelated tables.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingFormulas/measures don't filter tables. Slicers and filters filter tables.
You could use CALCULATETABLE() with filters to create a new table filtered as you want.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi, thank you for the suggestion.
I would like to learn how to use CALCULATETABLE() to create a new table based upon my required fitlers. What is the best way to go about learning about going about this? I need to fitlers based upon anumber of columns, all of which are pulling from seperate (but linked) data tables.
See this CALCULATETABLE() definition by SQLBI, and the Related Articles section at the bottom. You can set filters in CALCULATETABLE() on a number of columns. It is best if the data has relationships between the tables you are working on and not get involved in using TREATAS() on unrelated tables.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCovering 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 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |