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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
hidrag
Frequent Visitor

Table of ratio with filter from two databases

Hi everyone,

 

I have a small issue with Power BI

 

I have two database

 

Claims

 

QuarterLobValue
Q1A2500
Q2A2000
Q3A1500
Q1B2400
Q2B6000
Q3B

5000

 

and Premiums

 

QuarterLobValue
Q1A1000
Q2A4000
Q3A7000
Q1B3500
Q2B2700
Q3B8000

 

I want to calculate the claim/premium ratio and put it in a table but i also want filter to see the value by quarter, by lob (read category) and quarter x lob.

 

What Powerbi does it that it calculates the (sum of all claims)/ (sum of premium for each quarter)

 

QuarterRatio
Q14.31
Q22.9
Q31.29
Total0.74

 

 

How can i do to make the filter use the variable from the two database since they are identical.

 

2 ACCEPTED SOLUTIONS
smpa01
Super User
Super User

@hidrag  what is your desired output

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

@hidrag  pbix is atatched

 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

4 REPLIES 4
hidrag
Frequent Visitor

Thank you for answering me.

Here is what i want to achieve

 

QuarterRatio
Ratio Q1109%
Ratio Q2119%
Ratio Q343%
Total74%

 

 

LobRatio
Ratio A50%
Ratio B94%
Total74%

 

 LOB ALOB  BTOTAL
Q1250%69%109%
Q250%222%119%
Q321%63%43%
TOTAL50%94%74%

 

I also (if possible) would like the solution to be dynamic in the sense that if there was an additionnal variable to add for my filters i would like to be able to do it simply

@hidrag  pbix is atatched

 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
smpa01
Super User
Super User

@hidrag  what is your desired output

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
hidrag
Frequent Visitor

Thanks

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.