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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
B_Ed1978
New Member

Help with context filtering

Hi Power BI experts, I am hoping somone can help. I am trying to write a DAX expression to so I can use a value as a denominater in a further calculation. See screen shot below I am trying to get the values in column A to appear under the heading "PIN" so I could then do a calculation like 

PIN | ADRG Units MAT TY 13,523,924 - PROP | ADRG Units MAT TY and all other filtering is repsected. 

 

I am sure there is a way, it is just beyond my current skill set

 

B_Ed1978_0-1692662256187.png

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @B_Ed1978 ,

 

Try this:

=
CALCULATE (
    SUM ( 'Table'[Units] ),
    ALL ( 'Table'[PIN/PROP] ),
    'Table'[PIN/PROP] = "prop"
)
    - SUM ( 'Table'[Units] )

 

You will see results similar to below:

danextian_0-1692669459864.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @B_Ed1978 ,

 

Try this:

=
CALCULATE (
    SUM ( 'Table'[Units] ),
    ALL ( 'Table'[PIN/PROP] ),
    'Table'[PIN/PROP] = "prop"
)
    - SUM ( 'Table'[Units] )

 

You will see results similar to below:

danextian_0-1692669459864.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Many thanks this is great

amitchandak
Super User
Super User

@B_Ed1978 , If I create a measure

 

Calculate([Measure], [column] ="A")

 

Column ="A" values will appear under all column values when that has been used in visual

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.