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
niceday123
Frequent Visitor

Display data + measure in the same vizualisation

Hi,

 

I have the following data :

 

Table1 : Forecast

Capture.PNG

Table2 : Objective

Capture2.PNG

I'd like my vizualisation to show that :

Result.PNG

 

Any help will be very much appreciated.

Many thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @niceday123 ,

 

Measure = 
var a = CALCULATE(SUM(Objective[Sales Objective]),FILTER(Objective,Objective[Name]=SELECTEDVALUE(Forecast[Name])))
var b = CALCULATE(SUM(Forecast[Sales Forecast]),ALLEXCEPT(Forecast,Forecast[Name],Forecast[Place],Forecast[Month]))
return
a-b

Can't hide but you can change the font color to white under Format -> Field formatting

2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

6 REPLIES 6
vanessafvg
Super User
Super User

@niceday123  can you paste the data in text format?  





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hi @vanessafvg , Here is my data as text

 

Name Month Place Sales Forecast   Name Sales Objective
Peter Jan-20 Orlando 2000   Peter 4000
Peter Jan-20 Chicago 2000   John 10000
Peter Feb-20 Miami 1500   Mike 5000
Peter Feb-20 New-York 1700    
Peter Mar-20 Orlando 1000    
John Jan-20 Chicago 2000    
John Jan-20 Miami 2000    
John Jan-20 Orlando 5000    
John Feb-20 Miami 8000    
John Mar-20 New-York 5000    
John Mar-20 Miami 5000    
Mike Jan-20 New-York 3000    
Mike Jan-20 Orlando 3000    
Mike Feb-20 Chicago 2500    
Mike Feb-20 Miami 1000    
Mike Mar-20 Miami 500    
Mike Mar-20 Orlando 500    
Mike Mar-20 New-York 3000    

Anonymous
Not applicable

Hi @niceday123 ,

 

Measures can only be added into value field of Matrix.

1.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Hi @Anonymous , Thanks for your answer.

 

Could you please share the DAX formula of your measure 3 ?

 

Also, is there a way to ignore/hide details by Place only for columns Measures 3 and display total of that column as the sum of the subtotal ? i.e. :

  forum2.PNG

Anonymous
Not applicable

Hi @niceday123 ,

 

Measure = 
var a = CALCULATE(SUM(Objective[Sales Objective]),FILTER(Objective,Objective[Name]=SELECTEDVALUE(Forecast[Name])))
var b = CALCULATE(SUM(Forecast[Sales Forecast]),ALLEXCEPT(Forecast,Forecast[Name],Forecast[Place],Forecast[Month]))
return
a-b

Can't hide but you can change the font color to white under Format -> Field formatting

2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Hi @Anonymous ,

 

Thank you, very helpful !

My last concern is about the total of the column measure which I would like to show the sum of the bold values in the column (i.e. in Jan : 0 + (-1000) + 1000 = 0 )

 

Thanks

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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 Solution Authors