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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
jkesavan
Frequent Visitor

Adding two values from a generated matrix table

Hi is there currently a way to just add two values made from a matrix table? Its relatively easy in excel as you just add two rows but struggling to figure this out in PowerBI. For example below:

 

jkesavan_0-1600826805904.png

i want to add the Early and Late columms. so the Diamond section will just produce 69.2% (8.55 + 60.65). 

 

Thank you. 

1 ACCEPTED SOLUTION

Hi @jkesavan 

Due to I don't know your data model, I build a measure and see the result you want in column subtotal.

1.png

Measures:

Measure = 
CALCULATE(SUM('Table'[Value1]),FILTER('Table','Table'[Status]=MAX('Table'[Status])))/100
Measure2 = SUMX(FILTER('Table','Table'[Section] = MAX('Table'[Section])),[Measure])

Result:

2.png

If this reply still couldn't solve your problem, please provide me with your pbix file by your Onedrive for Business.

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@jkesavan ,

If they are values in table , create a new column

 

new Type =
Switch ( True() ,
[Type] in {"Early" ,"Late"} ," Not on Time",
"On Time"
)

and use that. else you can explore segmentation or binning

 

if they are measures
Not on Time = [Early]+[Late]

https://www.daxpatterns.com/dynamic-segmentation/
https://www.daxpatterns.com/static-segmentation/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandak i have sent you a private message to send the pbix file. 

Hi @jkesavan 

Due to I don't know your data model, I build a measure and see the result you want in column subtotal.

1.png

Measures:

Measure = 
CALCULATE(SUM('Table'[Value1]),FILTER('Table','Table'[Status]=MAX('Table'[Status])))/100
Measure2 = SUMX(FILTER('Table','Table'[Section] = MAX('Table'[Section])),[Measure])

Result:

2.png

If this reply still couldn't solve your problem, please provide me with your pbix file by your Onedrive for Business.

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

 

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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