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,
Is there a way to filter columns in a table? for example, in the table below, if no Month is selected, I want to show the fields ENTRIES test, % Entries Full Year, and Count Weekday Full Year.
If I click on a certain month, I only want the ENTRIES test, % Entries, and Count Weekday fields to be shown.
Is this possible?
Thank you!
Sarah
Solved! Go to Solution.
hi @Anonymous
For your case, you could try this way to get it:
Step1:
Add a new table that contains these five measures name
Step2:
Then create a measure as below
Measure =
SWITCH(SELECTEDVALUE('Columns'[Type]),
"ENTRIES test",[ENTRIES test],
"% Entries Full Year",IF(ISFILTERED('Table'[Month]),BLANK(),[% Entries Full Year]),
"Count Weekday Full Year",IF(ISFILTERED('Table'[Month]),BLANK(),[Count Weekday Full Year]),
"% Entries",IF(ISFILTERED('Table'[Month]),[% Entries],BLANK()),
"Count Weekday",IF(ISFILTERED('Table'[Month]),[Count Weekday],BLANK()))
Step3:
Now drag Type field into columns of matrix visual and this measure instead of these five measure into visual.
here is simple sample pbix file.
Result:
Regards,
Lin
hi @Anonymous
For your case, you could try this way to get it:
Step1:
Add a new table that contains these five measures name
Step2:
Then create a measure as below
Measure =
SWITCH(SELECTEDVALUE('Columns'[Type]),
"ENTRIES test",[ENTRIES test],
"% Entries Full Year",IF(ISFILTERED('Table'[Month]),BLANK(),[% Entries Full Year]),
"Count Weekday Full Year",IF(ISFILTERED('Table'[Month]),BLANK(),[Count Weekday Full Year]),
"% Entries",IF(ISFILTERED('Table'[Month]),[% Entries],BLANK()),
"Count Weekday",IF(ISFILTERED('Table'[Month]),[Count Weekday],BLANK()))
Step3:
Now drag Type field into columns of matrix visual and this measure instead of these five measure into visual.
here is simple sample pbix file.
Result:
Regards,
Lin
Hi @Anonymous
no, sorry
only play with bookmarks
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 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |