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.
Well, I need a formula to solve this problem.
As you observe I have a number of customers, these in terms of rate have two options that have group rate or what have customer rate, you can realize the case that has both, always imposes the customer rate.
As for the idem discount, you may notice that they have the two columns reported (Dcto group and Dcto customer), always prevailing the dcto customer.
In addition it can happen that a customer has rate group and dcto customer and also that a customer has customer rate and dcto group.
customer | group rate | Customer rate | Dcto Group | Dcto client | result |
1 | 5 | 0 | 1 | 0 | 4 |
2 | 0 | 5 | 0 | 1 | 4 |
3 | 5 | 0 | 0 | 2 | 3 |
4 | 0 | 5 | 2 | 0 | 3 |
5 | 5 | 3 | 2 | 0 | 1 |
6 | 5 | 3 | 0 | 2 | 1 |
7 | 5 | 3 | 2 | 1 | 2 |
Solved! Go to Solution.
Not sure this is what you are looking for.
Rate =
IF (
NOT ISINSCOPE ( 'Table'[customer] ),
BLANK (),
SUMX (
'Table',
IF ( 'Table'[Customer rate] = 0, 'Table'[group rate], 'Table'[Customer rate] )
)
)
Dcto =
IF (
NOT ISINSCOPE ( 'Table'[customer] ),
BLANK (),
SUMX (
'Table',
IF ( 'Table'[Dcto client] = 0, 'Table'[Dcto Group], 'Table'[Dcto client] )
)
)
If this is not what you are looking for please provide an example of the expected output and logic for how you got it.
Not sure this is what you are looking for.
Rate =
IF (
NOT ISINSCOPE ( 'Table'[customer] ),
BLANK (),
SUMX (
'Table',
IF ( 'Table'[Customer rate] = 0, 'Table'[group rate], 'Table'[Customer rate] )
)
)
Dcto =
IF (
NOT ISINSCOPE ( 'Table'[customer] ),
BLANK (),
SUMX (
'Table',
IF ( 'Table'[Dcto client] = 0, 'Table'[Dcto Group], 'Table'[Dcto client] )
)
)
If this is not what you are looking for please provide an example of the expected output and logic for how you got 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 |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |