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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.