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! Request now

Reply
Anonymous
Not applicable

Assign all values in a column to month

Hi,

in my Power Bi Data i have a table with month columns. 

Nanaki_2-1601638240730.png

 

 

In the column I have values in Euro.
I want to format my columns with the topic "month", so that all values in this column are assigned to this month.
Later I need to filter my values for each month.

Is it possible to format the columns or the values like that? 
Or do you have better example to how to solve this problem? 

 


Thanks in advance.

Best regards
Lennart

2 ACCEPTED SOLUTIONS
ibarrau
Super User
Super User

Hi! Yes you can. The operation name is unpivot. You can do it under transform data menu with power query editor. Here you have an example of pivot and unpivot:

https://databear.com/power-bi-pivot-and-unpivot-columns/

Hope it helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

Anonymous
Not applicable

Hi @Anonymous,

You can't credit use one filter to processing multiple table fields. You can enter to query editor and do unpivot columns on your month fields to convert them to attribute and value.

Unpivot columns (Power Query) 

If you not want to change the table structure, you can duplicate the original query table and do 'unpivot columns' on the copied one. Then save back to data view and link tables with id fields.

After these steps, you can simply filter and use Dax formula to process (raw table)multiple fields values. 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous,

You can't credit use one filter to processing multiple table fields. You can enter to query editor and do unpivot columns on your month fields to convert them to attribute and value.

Unpivot columns (Power Query) 

If you not want to change the table structure, you can duplicate the original query table and do 'unpivot columns' on the copied one. Then save back to data view and link tables with id fields.

After these steps, you can simply filter and use Dax formula to process (raw table)multiple fields values. 

Regards,

Xiaoxin Sheng

ibarrau
Super User
Super User

Hi! Yes you can. The operation name is unpivot. You can do it under transform data menu with power query editor. Here you have an example of pivot and unpivot:

https://databear.com/power-bi-pivot-and-unpivot-columns/

Hope it helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

amitchandak
Super User
Super User

@Anonymous , My Suggestion would be unpivoting this data

 

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

 

Then create a date using the month

Date = "01-" & [Month] & "2020" //seem you do have year. Change data type to date

 

Then you can use time intelligence with date table

Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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