Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
97 | |
93 | |
87 | |
68 |
User | Count |
---|---|
173 | |
134 | |
132 | |
103 | |
95 |