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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
dexter00000
Helper I
Helper I

Dividing Measure by another measure according to values inside matching

Hello,

I have 2 tables which are related and has the same CH_NAME and i am trying to get TobeDivided Measure to be divided by the other one but it should be CH_NAME by CH_NAME like

dexter00000_0-1665952601477.png ABC should divide ABC and DAB should divide DAB


These are my measures how do i get tobedivided's values to be divided by the other measure

 

TobeDivided =
CALCULATE (
SUM ( 'Table2022'[MONEY] ),
ALLSELECTED ( 'Table2022' ),
VALUES ( 'Table2022'[CH_NAME] )
,
FILTER('Table2022',VALUE('Table2022'[YEAR]) = 2022 && VALUE('Table2022'[MONTH]) = 8 && VALUE('Table2022'[DAY]) = 31 && VALUE('Table2022'[CODE]) = 120)
)


Divider =
CALCULATE(SUM('Income'[MONEY]),FILTER('Income','Income'[DÖNEM] = "HAZİRAN" && ('Income'[KEBİR] = "600" || 'Income'[KEBİR] = "602") ))
+
CALCULATE(SUM('Income'[MONEY]),FILTER('Income','Income'[DÖNEM] = "TEMMUZ" && ('Income'[KEBİR] = "600" || 'Income'[KEBİR] = "602") ))
+
CALCULATE(SUM('Income'[MONEY]),FILTER('Income','Income'[DÖNEM] = "AĞUSTOS" && ('Income'[KEBİR] = "600" || 'Income'[KEBİR] = "602") ))


I use ToBeDivided measure to use CH_NAME with in a graphic and Divider with CH_NAME in another graphic and i need a graphic with matching CH_NAME's being divided to each other
I am trying to achieve wsomething like this RETURN CALCULATE(DIVIDE(ToBeDivided,Divider),FILTER(GROUP BY CH NAME of some sorts i don't know at this point))

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @dexter00000 

Is there a relationship between 'Table2022' and 'Income'?

You may need to create a separate dimension table 'CH NAME Table' and create a one-to-many bidirectional relationship with the other two tables.
Calculated table:

CH NAME Table = DISTINCT(UNION(VALUES(Income[CH_Name]),VALUES('Table 2022'[CH_Name])))

Then you can use formula below with new field  'CH NAME Table'[CH_Name]  in a new table visual.

result=DIVIDE(ToBeDivided,Divider)

Best Regards,
Community Support Team _ Eason

thank you for your reply i couldn't get back to this yet if i need it and it works i'll make sure to accept as solution.

Helpful resources

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

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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