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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
minseon
Frequent Visitor

specific value as denominator in table

Hi all

I am trying to calculate ration in table
table is like below

minseon_0-1706834480668.png

 

and i want to get result like this

minseon_1-1706834524644.png

i want to use the value of b for each year as the denominator

 

in dashboard i use year and month slicer
How would  write DAX to achieve the above result?

Thanks

1 ACCEPTED SOLUTION
Rabi
Resolver I
Resolver I

Hi @minseon ,

This is exactly what you need:

Rabi_1-1706836231983.png

Please follow the steps below:

1) Add a new column Denominator as below:

 

denominator = 
CALCULATE(
    SUM(DATA[value]),
    FILTER(
        DATA,
        DATA[category] = "b" && DATA[year] = EARLIER(DATA[year])
    )
)

 

 2) Then again add a new column as below:

 

pct = DATA[value]/DATA[denominator]

 

That is it your issue is now solved, Visualise the table using matrix or normal Table.

Please mark it correct if it has helped.

Rabi Karki
LinkedIn

View solution in original post

2 REPLIES 2
Rabi
Resolver I
Resolver I

Hi @minseon ,

This is exactly what you need:

Rabi_1-1706836231983.png

Please follow the steps below:

1) Add a new column Denominator as below:

 

denominator = 
CALCULATE(
    SUM(DATA[value]),
    FILTER(
        DATA,
        DATA[category] = "b" && DATA[year] = EARLIER(DATA[year])
    )
)

 

 2) Then again add a new column as below:

 

pct = DATA[value]/DATA[denominator]

 

That is it your issue is now solved, Visualise the table using matrix or normal Table.

Please mark it correct if it has helped.

Rabi Karki
LinkedIn

minseon
Frequent Visitor

it works!!

Thanks RABI!!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.