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.
So I have my dataset with Client ID, Date, Status, Amount and a lot of extra columns.
I wanted to segment the clients using an RFM method, so I created a new Table and used the DISTINCT formula to extract all the distinct client IDs but I'm having a problem with 2 conditions. The first one is that there are some clients that don't have an ID so I want them excluded from my table, so I used this formula to successfully exclude the blanks:
But the other condition is that there are some clients that only have "Cancelled" transactions, this is shown in the Status column.
Solved! Go to Solution.
Hi,
You can add CALCULATETABLE to your formula, it can be something like the following:
Data RF =
DISTINCT (
CALCULATETABLE (
FILTER ( VALUES ( 'VTEX 2018-2019'[Client ID] ), LEN ( 'VTEX 2018-2019'[Client ID] ) > 0),
FILTER ( 'VTEX 2018-2019', [Status] <> "Cancelled" ),
'VTEX 2018-2019'[Customer ID] <> BLANK () ) )
Best,
Paul
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
You can add CALCULATETABLE to your formula, it can be something like the following:
Data RF =
DISTINCT (
CALCULATETABLE (
FILTER ( VALUES ( 'VTEX 2018-2019'[Client ID] ), LEN ( 'VTEX 2018-2019'[Client ID] ) > 0),
FILTER ( 'VTEX 2018-2019', [Status] <> "Cancelled" ),
'VTEX 2018-2019'[Customer ID] <> BLANK () ) )
Best,
Paul
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you! That did it!!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |