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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PBInonpro
Helper III
Helper III

pivot and unpivot with 'value' column.

I have 12 month columns (Jan - Dec) and a finances column (total budget). 

When I unpivot the months columns, i have what I need (column for month and column for value. The problem is that for the measures, the 'finance' column now shows 12x for each line, so the only option is to divide the total finance budget by 12? 

 

Example:

 

measure would be 'Finance = sum(finance..)/12 //since there are 12 months and therefor 12x values. 

 

FinanceJanFeb....Dec
5000500100....100
3500300200....400
1000400200....0
1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @PBInonpro 

Yes. After you unpivot the months columns, you need add a new custom column to divide the total finance budget by 12.

veasonfmsft_0-1671171927893.png

 

Best Regards,
Community Support Team _ Eason

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @PBInonpro 

Yes. After you unpivot the months columns, you need add a new custom column to divide the total finance budget by 12.

veasonfmsft_0-1671171927893.png

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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