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.
Good afternoon!
I explained my problem.
I have this column with several values:
The values in this column can be: 001N, 002N, 003N, 004N, 005N.
Depending on the value, you have to do the following:
If Code Nuevas = 001N, then COUNT(Opportunity[Opportunity] * (0.10)
If Code Nuevas = 002N, then COUNT(Opportunity[Opportunity] * (0.15)
If Code Nuevas = 003N, then COUNT(Opportunity[Opportunity] * (0.50)
If Code Nuevas = 004N, then COUNT(Opportunity[Opportunity] * (0.20)
If Code Nuevas = 005N, then COUNT(Opportunity[Opportunity] * (0.05)
How can I do this to make it work out for me?
I've tried it to one extent (the IF doesn't work with columns for me)...
Can you help me please?
Thank you!
Solved! Go to Solution.
@Syndicate_Admin Use SWITCH like:
Measure =
VAR __Code = MAX('Table'[Code Nuevas])
RETURN
SWITCH(__Code,
"001N",COUNT(Opportunity[Opportunity])*.1,
...
)
@Syndicate_Admin Use SWITCH like:
Measure =
VAR __Code = MAX('Table'[Code Nuevas])
RETURN
SWITCH(__Code,
"001N",COUNT(Opportunity[Opportunity])*.1,
...
)
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 |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |