Forum Discussion
DAX concepts / Filter behaviour
When i select company code from company table as slicer, total is changing .that is obvious,but how customer figures are changing cos there is no direct relationship with company and customer and direction is also uni directional .Is that company filter fact table and then as reverse filter, fact table filter out customer. Ijust want to know the way i think is correct.Customer is indirectly filter by company via fact as i understood.
Scenario 02
IF (
ISINSCOPE ( CUSTOMERS[CUSTOMER_PARENT_ID_REPORTING] ),
IF (
HASONEVALUE ( CUSTOMERS[CUSTOMER_PARENT_ID_REPORTING] ),
RANKX (
ALLSELECTED ( CUSTOMERS[CUSTOMER_PARENT_ID_REPORTING] ),
CALCULATE (
[Total AR Amount],
ALLEXCEPT ( CUSTOMERS, CUSTOMERS[CUSTOMER_PARENT_ID_REPORTING] )
),
,
DESC,
DENSE
)
)
)
But since i have used allselected for customer_parent _id reporting now how this flows goes on.This is difficult to understand how this is behaving now with rank.I am not sure the final answer i am getting is right.what i finally want is dynamcially rank based on external slicers and show the total based on customer parent
1 Reply
- lbendlin
Super User
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523