The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am looking to creat a column by calculating two columns only if one column has a number. For example below:
I only want to calculate Market Share if SA Market = 1 or anyother number. If it is 0, I would like it to return a - or leave it blank. I want to take the average of that last column, only including the ones that where there is an actual market share. How can I go about doing this? Thanks!
Solved! Go to Solution.
General syntax for your last column:
Market Share = IF([Difference] = 0,"-",SOME CALCULATION)
You would replace SOME CALCULATION with your desired calculation.
General syntax for your last column:
Market Share = IF([Difference] = 0,"-",SOME CALCULATION)
You would replace SOME CALCULATION with your desired calculation.