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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

What DAX measures can I use to create this?

I want to create something like this in power bi. How would I go about doing this?

 

shah0717_0-1678799683818.png

 

1 ACCEPTED SOLUTION

Hi, @Anonymous 

 

You can try the following methods.
Table:

New Table = SUMMARIZE('Table','Table'[Item #],'Table'[Product],"YTD Product Sold",SUM('Table'[Sold]))

vzhangti_0-1679035871235.png

Column:

% of Total = DIVIDE([YTD Product Sold],SUM('New Table'[YTD Product Sold]))

vzhangti_1-1679035915600.png

Is this the result you expect?

Best Regards,

Community Support Team _Charlotte

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

 

View solution in original post

6 REPLIES 6
bhelou
Responsive Resident
Responsive Resident

is that a table or what , if you can share some sample of the Pbix File , 

if u want as a measure try to divide : 

% of Total = Divide([YTD Product Sold],Calcualte(Sum([YTD Product Sold]),Allselected()))

 

bhelou
Responsive Resident
Responsive Resident

2023-03-14 16_57_41-Untitled - Power BI Desktop.png

Anonymous
Not applicable

Hi, thanks for your response. But I am looking for a slightly different solution.

The data is actually a giant table with product information. What I need to do is create a table that I displayed in the original post.

 

Any thoughts sir?

 

bhelou
Responsive Resident
Responsive Resident

okay i think i got your question : 

try to make a new table with sumarized columns , attached pictures :  , 
in this you make a sammary of the table you have ( like grouping ) then you want to calculate the sum of the total inside it , then for the % use the measure provided in the first reply ) , hope this will help you , please accept as a solution it it works with you , 
if you have any trouble please share a sample of the PBIX file , 

table.png

bhelou
Responsive Resident
Responsive Resident

excel sample.png

 the  summarized table is based on this table sample

Hi, @Anonymous 

 

You can try the following methods.
Table:

New Table = SUMMARIZE('Table','Table'[Item #],'Table'[Product],"YTD Product Sold",SUM('Table'[Sold]))

vzhangti_0-1679035871235.png

Column:

% of Total = DIVIDE([YTD Product Sold],SUM('New Table'[YTD Product Sold]))

vzhangti_1-1679035915600.png

Is this the result you expect?

Best Regards,

Community Support Team _Charlotte

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

 

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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