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.
Hi Experts,
Please Help me out on this data.
Type | Action | Serial No |
Free | Green | 1 |
Free | Red | 2 |
Paid | Red | 3 |
Paid | Green | 4 |
Free | Green | 5 |
I need a Calculation for a NEW Column on the following Condition:
IF TYPE=FREE and Action=GREEN THEN Serial No END
So if both conditions in 2 columns are Satisfied then New column should return that Serial No, so in this case the New Column should return 1 & 5 only.
Thanks
Deepak
Solved! Go to Solution.
You could do it either in Power Query or DAX.
I'm guessing DAX will be easier for you:
If you go to Modeling->New Column and then Write:
Serial No OK = IF ( [Type] = "Free" && [Action] = "Green", [Serial No] )
and that should do it.
Edit: I should note that the new column in this case will not return only 1 and 5, but also blanks in the rows which do not meet these conditions.
You could do it either in Power Query or DAX.
I'm guessing DAX will be easier for you:
If you go to Modeling->New Column and then Write:
Serial No OK = IF ( [Type] = "Free" && [Action] = "Green", [Serial No] )
and that should do it.
Edit: I should note that the new column in this case will not return only 1 and 5, but also blanks in the rows which do not meet these conditions.
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |