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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
EKI
New Member

Dax formula

Dear all,

I'm new to the Power BI environment so be patient with me.

 

I have created a report for my project financial overview.

I have a matrix table where the rows are the project hierarchy (main and subs) in a nested layout.

EKI_1-1729857141467.png

 

In columns i have the Contracted amount, Invoiced amount, budget, costs etc.

EKI_2-1729857191920.png

 

Now i have created a measure that will calculate the unbilled amount based on my cost progress (if result=<0,0,result). 

My issue there is that in the total row of the table it will not sum the results of the lines (Green) but it will calculate the value based on the total line results (Red).

EKI_3-1729858000179.png

 

Does anyone knows a trick or a different type of calculation i could make, in order to not change the visual i have currently? 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @EKI ,

 

Do you mean that the total of the measure column is incorrect? I recommend you create another measure with SUMX function and use it in matrix. The measure column with the correct total should then appear, you just need to hide the original measure column.

Measure = SUMX('Table',[Unbilled amount])

vmengmlimsft_0-1730085844177.png

 

If I'm not understanding the problem correctly, please provide more information such as sample data, dax of measure or link of pbix file.

 

 

Best regards,

Mengmeng Li

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information. Do not include anything that is unrelated to the issue or question.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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.