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.
Hello, hope you're all well. Please I need help on selecting the correct DAX functions to use.
I have a Customer table identifying them with an ID and containing all their contact information, an Orders table that links the orders to that ID and third table that contains the IDs that are part of a special program for customers. The three of them have a relationship with ID field.
I would like to separate count the orders that were purchased by those IDs contained in the third table (members of that special program) and also the other ones to evaluate the effectiveness of the program.
What's the best way to do it?
Solved! Go to Solution.
Showing your tables or sharing a mock pbix would make providing an answer simpler.
You can create measures and place them in a visual cards:
NumOrders_Cust_InProgram =
CALCULATE (
DISTINCTCOUNT ( OrdersT[ID] ),
FILTER ( ALL ( OrdersT[ID] ), OrdersT[ID] IN DISTINCT ( Table3[ID] ) )
)
NumOrders_Cust_Not_InProgram =
CALCULATE (
DISTINCTCOUNT ( OrdersT[ID] ),
FILTER ( ALL ( OrdersT[ID] ), NOT OrdersT[ID] IN DISTINCT ( Table3[ID] ) )
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
Showing your tables or sharing a mock pbix would make providing an answer simpler.
You can create measures and place them in a visual cards:
NumOrders_Cust_InProgram =
CALCULATE (
DISTINCTCOUNT ( OrdersT[ID] ),
FILTER ( ALL ( OrdersT[ID] ), OrdersT[ID] IN DISTINCT ( Table3[ID] ) )
)
NumOrders_Cust_Not_InProgram =
CALCULATE (
DISTINCTCOUNT ( OrdersT[ID] ),
FILTER ( ALL ( OrdersT[ID] ), NOT OrdersT[ID] IN DISTINCT ( Table3[ID] ) )
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
It worked perfectly, was just what I needed.
Thanks a lot.
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 |
---|---|
116 | |
101 | |
74 | |
70 | |
47 |
User | Count |
---|---|
146 | |
107 | |
106 | |
89 | |
65 |