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 September 15. Request your voucher.

Reply
abhiram342
Microsoft Employee
Microsoft Employee

DAX Measure help

Hi All,

I want to create measure for below scenario. I have FactTable and 3 dimension Tables as you see in screenshot.

scenario: I want to show data only for AnchorCustomers combination.

 

SalesAmount: = sum('Sales'[Amount])

SampleData.png

 

Relationships:

Relationships.png

 

Thanks,

Abhiram

2 ACCEPTED SOLUTIONS

Thanks @wdx223_Daniel ! Is there way that I can re-use measure. Example If I want to get Total Sales then I need to create new measue. I need to repeat totalsalesanchorfor mom,yoy,ytd. Can you please tell how can I use the same measure

TotalSales =  Sum([SalesAmount])

TotalSalesAnchor=IF(MAX(AnchorCustomer[IsAnchor]),SUM[SalesAmount]))

 

View solution in original post

tamerj1
Super User
Super User

Hi @abhiram342 
You can use visual level filter pane. Place the following measure in the filter pane, select "is" and type 1 then apply the filter.

FilterMeasure =
INT ( MAX ( AnchorCustomer[IsAnchor] ) )

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @abhiram342 
You can use visual level filter pane. Place the following measure in the filter pane, select "is" and type 1 then apply the filter.

FilterMeasure =
INT ( MAX ( AnchorCustomer[IsAnchor] ) )
wdx223_Daniel
Super User
Super User

AnchorSales=IF(MAX(AnchorCustomer[IsAnchor]),SUM[SalesAmount]))

Thanks @wdx223_Daniel ! Is there way that I can re-use measure. Example If I want to get Total Sales then I need to create new measue. I need to repeat totalsalesanchorfor mom,yoy,ytd. Can you please tell how can I use the same measure

TotalSales =  Sum([SalesAmount])

TotalSalesAnchor=IF(MAX(AnchorCustomer[IsAnchor]),SUM[SalesAmount]))

 

calculation group can do that job.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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