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
trevb
Resolver I
Resolver I

Totally unable to pivot this using PowerQuery and I am not sure why

 

Okay so my data looks like this:

 

Capture.PNG

 

And it goes down a long way.  What I want to do is to pivot this table based on the FinancialYearStart column. so that I get something that looks like

 

ProjectCode   2011  2012   2013  .......

Code              sum   sum    sum .......

 

Now this should be a classic but it just fails giving me this...

 

Capture1.PNG

Looking at each of these the error is

 

 

 

 

 

3 REPLIES 3
trevb
Resolver I
Resolver I

 

Capture2.PNG

 

I have absolutely no idea why this is.  I've tried using a replace to ensure any nulls are not nulls but this still happens.  I really need this but just cannot get it to work.

 

Anyone got any ideas?

itchyeyeballs
Impactful Individual
Impactful Individual

Is PBI automatically adding a convert values row to your query? its caught me out with that before. 

Turned out that an earlier step in the query that generated the source was adding an issue into the table.  Using a try otherwise on that eliminated the dodgy row/rows and the pivot worked 🙂

 

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.