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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Alternative to pivot option

Hi All,

 

somchat1_0-1634477253939.png

 

 

 

We have Region,Country,Port Columns for Origin and Destination.

O_Region,O_country,O_Port , Region_D,Country_D,Port_D are columns for Origin and Destination.All are in one table.I have a requirement like,if I click on Region Button from Origin and Region Button from Destination,then it should show all the transactions from that Origin Region to Destination Region.If I click on  Region from Origin and country from Destination then it should show transactions from Origin Region to Country Destination.If I click on Port from Origin and Region from Destination,then it should show transactions from Origin Region to Country Port.

 

I need to display the combination is like this,

Region to Region

Region to Country

Region to Port

Country to Region

Country to Country

Country to Port

Port to Region

Port to Country

Port to Port

I have achieved it by doing Unpivot for Region,Country,Port for Origin and Unpivot for Region,Country,Port for Destination.These steps are adding more rows.I have huge amount of Data.

So,Can any one please suggest me any other way for this?

 

 

2 REPLIES 2
Fowmy
Super User
Super User

@Anonymous 
Do not worry about a huge number of rows, large numbers of columns will make your model slower. If works for you fine. 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Is there any intelligent way to handle it with Pivoting the complete data . through some Dax any reference will be helpful.

In my case there are 12 columns and I need to Pivot two columns againts those 10 columns and each granular data has 12 Millions rolws . This becomes difficult to refresh the data on service. 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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