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
StuartSmith
Power Participant
Power Participant

Number of Rows, before unpivot.

I had a table that had roughly 140 rows, but due to the way the data was presented, I had to "Unpivot" several columns, resulting in the table now having over 700 rows. The problem is that now any visuals see the 700+ rows and not the actual/original number of rows, resulting in incorrect values.  

 

I thought I could inport the origianl table in again as a 2nd table, and get values from there, but one of the values i need to display is one of the unpivited columns, so that that doesnt work.

 

How do people get pre-unpivoted values on a pivoted table.   I hope that makes sense.

 

Thanks in advance.

3 REPLIES 3
amitchandak
Super User
Super User

Check if there already a key column before unpivot. the distinct count can give the number post unpivot.

 

Or create an index column before unpivot and then try. But I doubt this one.

No columns have unique values.  How do people work with pivoted data as its causing me lots of issues as its changed the table completely by adding 600+ extra pivoted rows, resulting in visuals taking into account these extra rows and not the actualy rows from the original unpivoted table.

 

Hi @StuartSmith

 

Can you choose another way instead of unpivoting columns ,such as creating a calculated column or measure to achieve what you need?

Can you provide some sample data if it's not confidential?

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

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.