Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

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

avatar user
Anonymous
Not applicable

Syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

excel sample.png

 the  summarized table is based on this table sample

Syndicated - Outbound

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.

 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)