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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Custom row total - changing number of columns

Hi,

 

I struggle with a problem of total value calculations. I want to create a matrix with a few columns. The situation is depicted on the below image. Basicly there are two measures (Measure1 and Measure2). Measure3 is calculated using the expression if(measure1 <> 0, measure2, 0). The final measure consist of a part of Measure2 and Measure3 (green and yellow cells). So far I have used HASONEVALUE but when the number of columns is changing it doen't make sense. I have been using SELECTEDVALUE but it also requires static number of columns in the table (SELECTEDVALUE-link). The goal is to calculate the last column FinalMeasure.

{D1F33B99-1957-46D5-9AE4-BDDE7673937D&#125;.png.jpg 

 

Gladly I will hear any suggestions from you on how to cope with this problem.

2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Due to I could not figure out your logic of measure 1 and measure 2, I could not test for your data. Could you please offer a sample file to have a test if possible?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-danhe-msft,

 

finally I have resigned from this logic and implemented without it. I still don't know solution but it's irrelevant right now.

 

Kind regards,

Nicr

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors