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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.