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
Anonymous
Not applicable

Calculation based on data grouping

Hi All,

 

I have a Fact table (left) and Dim table (right). Below is a table visual I want to show in the dashboard. 

For row Brand A, I want to show the percentage where the Denominator is 10 (actual) and Numerator is 3 (sales).

 

Brand A % = 10/3

Brand B % = 20/6 

 

Is it possible to achieve this? Can anyone show me the method?

 

 

beekee_0-1604001681676.jpeg

 

 

Thanks & Regards,

BK

1 REPLY 1
DataInsights
Super User
Super User

@beekee,

Try this:

1. Add the Group column to the Mark table.

DataInsights_0-1604266642149.png

2. Create a relationship between the Sales and Brand tables.

DataInsights_1-1604266655441.png

3. Create measure.

Market = 
VAR vNumerator =
    SUM ( Sales[Actual] )
VAR vDenominator =
    SUM ( Sales[Sales] )
VAR vResult =
    DIVIDE ( vNumerator, vDenominator )
RETURN
    vResult

4. Create a visual table, using the Mark column of the Mark table.

DataInsights_2-1604266673500.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.