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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors