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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Dynamic axis selection in Sankey Chart or Bar Chart?

Hi!

 

Though I am aware of the dynamic axis selection in Power BI visuals, I have quite a complex use case. Here are the details:

 

I have a table, let's call it fact_table, with following structure

ID | 2022-01 | 2022-02 | 2022-03....

 

In each of the Month-Year columns, I have only one of five values - A, B, C, D, E (category)

 

I am creating a Sankey Chart to see the movement of IDs from one category to another category. For this, I am currently mentioning static SOURCE and DESTINATION in Sankey Chart. However, I want to be able to select the SOURCE and DESTINATION in a dynamic way.

 

The problem here is that, unlike the usual dynamic selection, I have the column names that I have to select dynamically. 

 

I tried to do following things, but could not progress any further:

1. Unpivot the columns in Data Transformation. However, the columns keep changing. There are 12 columns with rolling 12 months. So, in June 2023, we will have columns from Jul-2022 till Jun-2023, but in July 2023 we will have columns from Aug-2022 till Jul-2023

2. Creating parameters. For obvious reasons, that didn't help either

 

Is there anything anyone could suggest?

 

Many thanks!

Dipesh

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors