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
JohanSmith7
Frequent Visitor

How to handle multiple columns in a line chart (without pivoting columns in Power Query)

Hi all, I need to replicate the following behaviour that is in a dashboard in QlikSense.

 

I have a filter that contains almost 20 options, each option selected should take 5 columns at the same time (Actual, Lag 0, Lag 1, Lag3, Lag 6) in my table and show a line graph using those 5 columns.

My data set looks like this: 

JohanSmith7_0-1685419604593.png

All of the previous columns should be grouped in some way with a label like: Total Demand. So when I select from the filter Total Demand, I should see the following: a line chart using the 5 columns.

JohanSmith7_0-1685415819516.png

The challenge comes when my data set is too large and it's almost imposible to think of unpivoting columns. In the past I have done the unpivot option from Power Query and I had my Atributes and Values to be used as desired and that worked fine in small data sets, now I have a table with +80M records and +150 columns  and there's +5 fact tables in my model.

 

I am looking for ideas, alternatives to overcome the previous challenge? is there anything I can do from DAX or even from table in SQL to have that behaviour in my dashboard?

Thanks,

 

 

1 REPLY 1
vk_pbi
Resolver II
Resolver II

Is it possible to share some sample data as well as your data model.. 

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.