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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
iruserwin
New Member

reporting how to

Hi fabric folks.  I'm not sure if this is a reporting, power query, or dax question.

 

Given data set

 

clientadmin revenue type 1admin revenue type 2admin revenue type 3other revenue type 1other revenue type 2other revenue type 3
bob102025225588
mary202530336699
jane2530

20

447710

 

and desired report

 adminother
revenue type 15599
revenue type 275198
revenue type 375197

 

I dont have seperate records for each revenue type they are instead columns so neither a matrix or table are working for me.

 

I think a DAX total field for each revenue type would perhaps work.  Is that the smartest way however?

Is there a DAX for the label revenue type 1 revenue type 2?

 

Is there a way to make the data become multiple rows?

clientadmin revenue type 1admin revenue type 2admin revenue type 3other revenue type 1other revenue type 2other revenue type 3
bob1000000
bob0200000
bob0025000
bob0002200
bob0000550
bob0000088

 

or even better

 

clientrevenue typeamount
bobadmin revenue type 110
bobadmin revenue type 220
bobadmin revenue type 325
bobother revenue type 122
bobother revenue type 255
bobother revenue type 388

 

 

 

Open to suggestions as to how to proceed.

 

thanks!

 

 

 

 

1 ACCEPTED SOLUTION
Irwan
Super User
Super User

hello @iruserwin 

 

i think you should get your desired result from unpivot table

- unpivot table

Irwan_1-1737075665661.png

Irwan_0-1737075609642.png

- split Attribut column by space delimiter at the leftmost

Irwan_2-1737075960156.png

Irwan_3-1737075974508.png

- plot in matrix visual

Irwan_4-1737076040283.png

 

Hope this will help.

Thank you.

View solution in original post

4 REPLIES 4
Irwan
Super User
Super User

hello @iruserwin 

 

i think you should get your desired result from unpivot table

- unpivot table

Irwan_1-1737075665661.png

Irwan_0-1737075609642.png

- split Attribut column by space delimiter at the leftmost

Irwan_2-1737075960156.png

Irwan_3-1737075974508.png

- plot in matrix visual

Irwan_4-1737076040283.png

 

Hope this will help.

Thank you.

thank you both... that is exactly what i was looking for.

 

As you can tell my sample data was fake.  Now i have to figure out how to apply this solution to the actual 20 columns of data.

hello @iruserwin 

 

glad to be a help.

 

Thank you.

ryan_mayu
Super User
Super User

@iruserwin 

have you tried unpivot in PQ

11.png12.PNG

 

https://learn.microsoft.com/en-us/power-query/unpivot-column?wt.mc_id=DP-MVP-5004616

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.