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
lhdp
Helper I
Helper I

Ratio Matrix Tooltip

My need is relativly simple : 

- My model is based on lines with a key day/measure/value with differents type of measure (in my example : Energy Consumption & Volume of water pumped)

- I want a matrix with the numerator (energy), the denominator (volume) with daily evolution tooltip for both and the ratio "Energy by volume" (tooltip non necessery).

lhdp_0-1656346836362.png

 

Source variables : Day/Measure/Unit/Value

Calcultated Measure : 

Energy = CALCULATE(SUM(Energy_Volume[Value]),Energy_Volume[Measure]="Energy")

Volume = CALCULATE(SUM(Energy_Volume[Value]),Energy_Volume[Measure]="Volume")
Energy_by_volume = DIVIDE(Energy_Volume[Energy],Energy_Volume[Volume])
 
Table 1 (with Value and the calculated ratio) : 
lhdp_1-1656347006718.png

Table 2 with calculated measures 

lhdp_2-1656347076542.png

 

In Table 1 my tooltip are good and in table 2 the are the sum of energy+Volume (bad). 

 

 

It's a shool exercice between line model (table 1 in the joined pbix) and measure model (table 2) but the tooltip is wrong. But no way is currently my need... Of course I don't want energy+volume but energy/volume

Please some help could be great.

Laurent

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@lhdp, It is not very clear, What is wrong with tooltip

You can try like

 

Energy = CALCULATE(SUM(Energy_Volume[Value]),Filter( Energy_Volume, Energy_Volume[Measure]="Energy"))

 

Volume = CALCULATE(SUM(Energy_Volume[Value]),Filter( Energy_Volume, Energy_Volume[Measure]="Volume") )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
lhdp
Helper I
Helper I

Thanks. It runs but I have to change my tooltip chart which was generic with "value" and it's now with every measure I need. Not perfect but I can do that.

amitchandak
Super User
Super User

@lhdp, It is not very clear, What is wrong with tooltip

You can try like

 

Energy = CALCULATE(SUM(Energy_Volume[Value]),Filter( Energy_Volume, Energy_Volume[Measure]="Energy"))

 

Volume = CALCULATE(SUM(Energy_Volume[Value]),Filter( Energy_Volume, Energy_Volume[Measure]="Volume") )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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