Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
jx615k
Frequent Visitor

Column Name

Hi Comunity Team,

 

Can a measure tretreive a column name? What I am trying to do is filtering data based on a column name.

 

Thanks and regards.

7 REPLIES 7
PBIfanatic
Helper V
Helper V

Hi @jx615k 

 

Please can you explain a bit more on what you are trying to achieve?

Thanks for your responce!

 

I want to have 2 slicers (slicer 1 and slicer 2). In slicer 1 I can pick up one of different Items, lets say "Item A" then Slicer 2 will have values From Column A. If I select Item B from Slicer 1, then Slicer 2 will have values from colum B and so on and on. Basically I have many Date columns and the users will pick up 3 of those columns to filter data so any user can select Coumn A, B and C, while others can select C, F, Z..... etc. I Cannot have 1 slicer per column since I would require more than 40 slicers so it wont be a great option so my goal is having 6 slicers, 3 containing Items from A to Z and the other 3 will contain any column from Column 1 to column N.

 

Thanks again for your kind support.

Hi @jx615k ,

 

You can create a measure and compare the values selected by the slicer and get the column. Example:

 

Capture.PNGCapture2.PNGCapture3.PNG

Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Hi Ricardo!!!

 

That is almost what I am looking for, is there a way I can replace the Dynamic table for a Slicer with date values?

For instance, if Country is CAN, then show a slicer from column  "Canadian Holidays", if Country is JPN, then show a slicer from column "Japan Holidays" and if Country is USA then show a slicer from column "USA Holidays"

 

Thansk in advance for your suport Ricardo 😃

Hi @jx615k ,

 

Try creating a calculated column for the second slicer - for the column canadian holidays. Your first slicer would be country.

CALCULATE(VALUES('COLUMN-CANADIAN HOLIDAYS', ALLSELECTED(COUNTRY))

 

Based on the selection from your first slicer, this calculated column will populate the holiday values for Canada.

 

 

@jx615k , Refer if this can help

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@jx615k ,

 

Maybe bookmarks can help you with that, have you used it ?

https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive

 

 

Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.