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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Arvind_123
Helper I
Helper I

Cost Distribution %Row Total

Hi Team,

I have Device in row where month and types are in column.

the result I am getting in power bi is :

Arvind_123_0-1705657938234.png

 but I need Month wise % row distribution in types that means I need addition of 2 click and 3 click would be 100%

for example find the ouput that I need which is easily available in excel

 

Arvind_123_1-1705658067712.png

Arvind_123_2-1705658067799.png

 

Thanks,

Arvind

1 ACCEPTED SOLUTION

hello @Arvind_123 

assuming that the second level pn the columns is a column from a table with values :  2 click , 3 click.

Can you please try this measure : 

measure =
var num = sum(table[col])
var denom =
calculate (
sum( table[col]) ,
allselected(table[click_col])

return
divide
( num,
denom,
0
)

 

 

let me know if it works .

 

best regards.

View solution in original post

4 REPLIES 4
Arvind_123
Helper I
Helper I

Hi @Daniel29195 ,

 

Thank you so much 🙂

It works perfrctly.

 

Regards,

Arvind

always happy to help 

Arvind_123
Helper I
Helper I

Hi Team,

Anyone can Please help me out to reach above desire output in power bi.

 

Thanks,

Arvind

hello @Arvind_123 

assuming that the second level pn the columns is a column from a table with values :  2 click , 3 click.

Can you please try this measure : 

measure =
var num = sum(table[col])
var denom =
calculate (
sum( table[col]) ,
allselected(table[click_col])

return
divide
( num,
denom,
0
)

 

 

let me know if it works .

 

best regards.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.