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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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