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.
Hey Guys,
I ran into another problem. I have Calculated colunm called Sunday Sug.Hr. Please see below picture and formular that I used to calculate'
(Sunday Sug.Hr = 'Traffic by Month'[Sunday.] *RELATED('This Month'[Payroll Hours Based on GP]))
Besed on the result I want to show,
if result = 0 then "0"
if result <8 then "8"
Else whatevether result
I tried several ways. its give me an error, (Ex IF AND, etc)
Column = SWITCH(('Traffic by Month'[Sunday.] * RELATED('This Month'[Payroll Hours Based on GP])) = 0,0,('Traffic by Month'[Sunday.] * RELATED('This Month'[Payroll Hours Based on GP])) < 8,8)
Thank you So much
Dhana
Solved! Go to Solution.
Hi @dananjayaprasad,
You just need to create a calculated column based on the column "Sunday Sug.Hr" using the formula below.
Column = IF ( 'Traffic by Month'[Sunday Sug.Hr] = 0, 0, IF ( 'Traffic by Month'[Sunday Sug.Hr] < 8, 8, 'Traffic by Month'[Sunday Sug.Hr] ) )
Best Regards,
Angelia
Hi @dananjayaprasad,
You just need to create a calculated column based on the column "Sunday Sug.Hr" using the formula below.
Column = IF ( 'Traffic by Month'[Sunday Sug.Hr] = 0, 0, IF ( 'Traffic by Month'[Sunday Sug.Hr] < 8, 8, 'Traffic by Month'[Sunday Sug.Hr] ) )
Best Regards,
Angelia
Thank you Angelia.
As an alternative for using those ugly nested IFs, the SWITCH function has some neat tricks - see https://powerpivotpro.com/2015/03/the-diabolical-genius-of-switch-true/
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 |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |