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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
abhiram342
Employee
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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors