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
robarbie
Helper I
Helper I

Need help with creating a table or hierarchy

Hello,

 

My boss wants a table showing the below highlighted in yellow.

 

robarbie_0-1620143088135.jpeg

but when I try to create the viz in Power BI it looks like this:

 

robarbie_1-1620143246373.png

 

We even tried creating a hiearchy but it still doesn't look correct.

 

Any assistance would be appreciated.

 

Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@robarbie , seem like you want break measure into measure and dimension

 

you need create a table like this

 

union(
summarize('Table',"Measure","sales","This period",[SALES YTD],"Last period",[SALES LYTD],"POP",[SALES YOY])
summarize('Table',"Measure","unit","This period",[unit YTD],"Last period",[unit LYTD],"POP",[unit YOY])
)


union(
summarize('Table','Table'[country],"Revenue","sales","This period",[Revenue YTD],"Last period",[Revenue LYTD],"POP",[Revenue YOY])
summarize('Table','Table'[country],"Costs","unit","This period",[Costs YTD],"Last period",[Costs LYTD],"POP",[Costs YOY])
)

 

add all group by which you want to filter

 

you can use matrix to display

View solution in original post

5 REPLIES 5
robarbie
Helper I
Helper I

@amitchandak can you help out with this.  I meant to include you  in my post.

@robarbie , check if my reply below can help

amitchandak
Super User
Super User

@robarbie , seem like you want break measure into measure and dimension

 

you need create a table like this

 

union(
summarize('Table',"Measure","sales","This period",[SALES YTD],"Last period",[SALES LYTD],"POP",[SALES YOY])
summarize('Table',"Measure","unit","This period",[unit YTD],"Last period",[unit LYTD],"POP",[unit YOY])
)


union(
summarize('Table','Table'[country],"Revenue","sales","This period",[Revenue YTD],"Last period",[Revenue LYTD],"POP",[Revenue YOY])
summarize('Table','Table'[country],"Costs","unit","This period",[Costs YTD],"Last period",[Costs LYTD],"POP",[Costs YOY])
)

 

add all group by which you want to filter

 

you can use matrix to display

I showed this to my boss and he thinks this will help us out.

 

Thanks!

Thanks, but that is really confusing. 

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.