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

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.

Reply
dilipkumar9
Frequent Visitor

dynamic rename column lable based on slicer value

i have 2 table, fact table with accountid, monthid, booked ,booked mm-1 (prev month booked $) . i have a timedim table with monthname, prevMonth columns with one tomany relation . i am using matrix talbe and  a slicer on monthname.

i am having hard time writing a power query on edit query to rrename column on fact table .

 

below is what ia m looking for . booked : booked (2018 feb ) , booked mm-1 : booked(2018 Jan).

Capture.JPG

Capture.JPG

Capture.JPG

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi dilipkumar9,

 

You can use "Unpivot Columns" in Editor Queries to make some column names be row values in the new "attribute" column, then the date in date column and these column names are both row values so that you can use slicer based on date column to filter names. 

 

However, the senario to change column names dynamically based on row value is not possible. In a chart, the column name will be shown as row values after "Unpivot Columns".

 

Hope it's clear.

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi dilipkumar9,

 

You can use "Unpivot Columns" in Editor Queries to make some column names be row values in the new "attribute" column, then the date in date column and these column names are both row values so that you can use slicer based on date column to filter names. 

 

However, the senario to change column names dynamically based on row value is not possible. In a chart, the column name will be shown as row values after "Unpivot Columns".

 

Hope it's clear.

Jimmy Tao

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.