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
Nanaki
Helper II
Helper II

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

v-shex-msft
Community Support
Community Support

Hi @Nanaki,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Nanaki,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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

@Nanaki , 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

 

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.