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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors