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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Preeti_Yadav
Resolver I
Resolver I

Enable column total for a non summarized column.

Hi all.

I have a column which shows values in a non summarized format.
The column is displaying values as average.
I want to enable the total for this particular column.
for that I created a measure as;
Total=Calculate(sumx(rbr,averagex(rbr,rbr[column]))

Preeti_Yadav_1-1648548806351.png


Can someone suggest me a DAX to enable total.


Thanks,
Preeti

@amitchandak @tamerj1 @Jihwan_Kim @jossiv @Greg_Deckler @johnt75 




 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Preeti_Yadav ,

You can create another new measure as below base on the measure with average calculation(Suppose the measure is named car_weight), later check whether it can get your expected result...

Measure = SUMX ( VALUES ( 'rbr'[jobid] ), [car_weight] )

If the above one doesn't work, please provide some sample data from rbr table with Text format and your expected result with calculation logic and special example screenshots. It is better if you can share a simplified pbix file with me. You can refer the following thread to upload your file in the community. Thank you. 

How to upload PBI in Community

Best Regards

View solution in original post

8 REPLIES 8
tamerj1
Super User
Super User

Hi @Preeti_Yadav 
Try 

Total =
SUMX ( rbr, CALCULATE ( AVERAGEX ( rbr, rbr[column] ) ) )
johnt75
Super User
Super User

I think you can just replace the column in your table visual with the measure you have created.

amitchandak
Super User
Super User

@Preeti_Yadav , You need to have a group by to have sum of avg

 

Calculate(sumx(rbr,calculate(averagex(rbr,rbr[column])))

 

Calculate(sumx(values(rbr[Column]) ,calculate(averagex(rbr,rbr[column])))

 

refer

Average of Sum https://www.youtube.com/watch?v=4xn0A43jBz8&list=PLPaNVDMhUXGZNyKU0PgG2g3P0c6CPjMnj&index=9

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @tamerj1 @amitchandak .

I already tried those measures ut to no avail.
That gave me an output like below;

Preeti_Yadav_0-1648553418275.png

 

i.e. my row value got chnaged.
I want my row values to be seen as Average and total in Sum. 
Can you suggest me some other logic?


In the report visual, what are you slicing by?

by jobid.

Anonymous
Not applicable

Hi @Preeti_Yadav ,

You can create another new measure as below base on the measure with average calculation(Suppose the measure is named car_weight), later check whether it can get your expected result...

Measure = SUMX ( VALUES ( 'rbr'[jobid] ), [car_weight] )

If the above one doesn't work, please provide some sample data from rbr table with Text format and your expected result with calculation logic and special example screenshots. It is better if you can share a simplified pbix file with me. You can refer the following thread to upload your file in the community. Thank you. 

How to upload PBI in Community

Best Regards

@Preeti_Yadav 
Try 

Total =
SUMX ( VALUES ( rbr[jobid] ), CALCULATE ( AVERAGEX ( rbr, rbr[column] ) ) )

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors