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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
arvindjha2050
New Member

ConversionRate

I have two tables

arvindjha2050_0-1725887443134.pngarvindjha2050_1-1725887465948.png

Requirement is when i select Egypt and Year: 2023 and STD : STD23

It should show 100

Requirement is when i select Egypt and Year: 2023 and STD : STD24

It should show 200

Requirement is when i select Egypt and India and Year: 2023 and STD : STD24

It should show 100*2 + 50*3 = 350

1 ACCEPTED SOLUTION
mickey64
Super User
Super User

Step 0: I use your DATA below. (Date:yyyy/mm/dd)

'Table1'

mickey64_0-1725897939900.png

'Table2'

mickey64_1-1725897958499.png

 

Step 1: I make a 'CountryTable'. 

CountryTable = SUMMARIZE('Table1','Table1'[Country])
mickey64_2-1725898054173.png

 

 Step 2: I add 2 relationships below.

mickey64_3-1725898126288.png

Step 3: I make 3 measures below.

M_CR = MAXX(FILTER('Table1','Table1'[STD]=SELECTEDVALUE(Table1[STD])),'Table1'[CR])

M_Sales = MAXX(FILTER('Table2','Table2'[Year]=SELECTEDVALUE('Table2'[Year])),'Table2'[Sales])

M_Total = VAR SelectedTable = SUMMARIZE('CountryTable','CountryTable'[Country],"Sales",[M_Sales],"CR",[M_CR])
        RETURN SUMX(SelectedTable,[Sales]*[CR])

 

Step 4: I make 3 slicers, 2 tables and a card visual.

mickey64_4-1725898427091.png

 

View solution in original post

3 REPLIES 3
mickey64
Super User
Super User

Step 0: I use your DATA below. (Date:yyyy/mm/dd)

'Table1'

mickey64_0-1725897939900.png

'Table2'

mickey64_1-1725897958499.png

 

Step 1: I make a 'CountryTable'. 

CountryTable = SUMMARIZE('Table1','Table1'[Country])
mickey64_2-1725898054173.png

 

 Step 2: I add 2 relationships below.

mickey64_3-1725898126288.png

Step 3: I make 3 measures below.

M_CR = MAXX(FILTER('Table1','Table1'[STD]=SELECTEDVALUE(Table1[STD])),'Table1'[CR])

M_Sales = MAXX(FILTER('Table2','Table2'[Year]=SELECTEDVALUE('Table2'[Year])),'Table2'[Sales])

M_Total = VAR SelectedTable = SUMMARIZE('CountryTable','CountryTable'[Country],"Sales",[M_Sales],"CR",[M_CR])
        RETURN SUMX(SelectedTable,[Sales]*[CR])

 

Step 4: I make 3 slicers, 2 tables and a card visual.

mickey64_4-1725898427091.png

 

Thanks a lot Mickey for the same , it works

Selva-Salimi
Solution Sage
Solution Sage

Hi @arvindjha2050 ,

if your tables does not have relations and the slicers are from the first table. then, you can write a measure as follows:

 

measure ConversionRate :=

var cr= selectedvalues( table1[CR])

return

sumx(calculate(max(sales),filter(table2, table2 [country] = selectedvalue ( table1[country]) && table2 [year] = selectedvalue (table1[yaer])) * CR )

 

If this post helps, then I would appreciate a thumbs up  and mark it as the solution to help the other members find it more quickly. 

 

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.