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
sabeensp
Helper IV
Helper IV

Difference in Matrix visual

Hello,

I have a table called TABLE1 as shown below. I have created 2 measurres

1- CALCULATE(SUM(TABLE1[VALUE), FILETER(Table1, TABLE1[Categorey = "A"))
2- CALCULATE(SUM(TABLE1[VALUE), FILETER(Table1, TABLE1[Categorey = "B"))

 

I brought Matrix visual as shown below, but now I need to show the differnce between Sales and value at the row level, I created another measure Difference = Measurre 1 - Measuer 2, but if I drag that into visual, it appears as a row.

 

2020-03-16_18-16-57.png

Thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sabeensp ,

Whether is there any other field that can judge the relationship between sales and target value, such as date field? If no, you may get only one row with summarized value finally.

 

Best Regards

Rena

 

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

I'm not sure I'm following this. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @sabeensp ,

Is there an one-to-one correspondence between sales and target value of your source data ? For example , 100 for sale correspond to target 30 , 150 for sales corresponds to target 35 and 200 for sales corresponds to target 40 ? If yes , you can process it on the source data side , and pivot the sales value and target values into 2 columns as shown in the following figure . You can view my shared sample file for details .

Process data in source sideProcess data in source sideTransform data in Query EditorTransform data in Query Editor

Best Regards

Rena

 

@AnonymousNo there is no 1:1 relationship not all forecast will have sales and vise versa.

 

Anonymous
Not applicable

Hi @sabeensp ,

Whether is there any other field that can judge the relationship between sales and target value, such as date field? If no, you may get only one row with summarized value finally.

 

Best Regards

Rena

 

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.

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.