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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Calculation of data in a table visual

Hi,

Recently started working with Power BI again, & just wanted to get the forum's help for the issue below-:

I have a huge raw data. Which has three columns for an example as shown below-:

Table 1-

Char AChar BValue
M1A18759933399

M2

A29435545332
M1A29454324332
M2A37434324332
M3A39434324332

 

Now i have to show it in matrix visual with the "Value" being counted distincly.

Table 2-

 A1A2A3
M1110
M2011
M3001

I have a second table which has conversion-factors:

Table 3-

Char AConversion factor

M1

0.1
M20.4
M30.35

 

Now, I need to divide the value in Table 2 with conversion factors in table 3 to get new set of data. So, my final output should also look like Table-2 but just with converted values.

 

I am not able to figure out how to achieve this on POWER BI, as all the calculation seems to happen on raw-data level. But, in my case I need to do calculations on data from visual.

Kindly provide suggestions to do so.

 

Thanks in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

aniketraut0077_0-1678270437590.png

Hi @Anonymous , you can use the above measure but the problem is this will work only when you have Aconversion Factor in your metrix, so what you have to do is you have to put this Aconversion Factor in rows and then remane the column with 'Space' button just like below. 

aniketraut0077_1-1678271949968.png

 

 after that you have to turn off the Text wrap in Row Headers.

aniketraut0077_2-1678272101301.png

 

Then expand down to next level of Hierarchy.

aniketraut0077_3-1678272323830.png

 

then you will have this below thing.

aniketraut0077_4-1678272425119.png

 

After that just hide the conversion factor column by adjusting column header then you will get you final output.

aniketraut0077_5-1678272576081.png

 

you can also remove that expand/collapse symbol before M1,M2,M3 column by clicking and turning off +/- icons in Row Headers.

aniketraut0077_6-1678272841349.png

 

If this works for you then please mark my solution as answer.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

Thank you so much, it worked! I had to also turn-off the "Row subtotals", as that was creating two rows(one with a total) for each conversion factor.

Just a follow-up question, how can I also see the Grand-total(sum along the column) as well. The matrix visual doesn't automatically show the Grand-total after following your instructions above.

 

Thanks a lot for your help!

Anonymous
Not applicable

aniketraut0077_0-1678270437590.png

Hi @Anonymous , you can use the above measure but the problem is this will work only when you have Aconversion Factor in your metrix, so what you have to do is you have to put this Aconversion Factor in rows and then remane the column with 'Space' button just like below. 

aniketraut0077_1-1678271949968.png

 

 after that you have to turn off the Text wrap in Row Headers.

aniketraut0077_2-1678272101301.png

 

Then expand down to next level of Hierarchy.

aniketraut0077_3-1678272323830.png

 

then you will have this below thing.

aniketraut0077_4-1678272425119.png

 

After that just hide the conversion factor column by adjusting column header then you will get you final output.

aniketraut0077_5-1678272576081.png

 

you can also remove that expand/collapse symbol before M1,M2,M3 column by clicking and turning off +/- icons in Row Headers.

aniketraut0077_6-1678272841349.png

 

If this works for you then please mark my solution as answer.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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