Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi,
I have the following issue. I have a colum with turnover, and I have column with webreferences (meaning internetsales).
No I would like to know the formula to calculate the internetsales. So if there is a webrefernece, that means it is an internetsale, otherwise it is an sale from the shop.
| Turnover | Webreference |
100 | |
| 125 | |
| 75 | 123456 |
| 110 | 78910 |
| 90 |
Solved! Go to Solution.
Create a Measure like below:
Hi @BartVlek ,
Is this what you want?
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sorry I did not make myself perfectly clear. From my example table above, I would want the foloowing result:
I would like a new column 'WEBTURNOVER'.
If there is no webreference, the value for that line in the new column should be 0.
If there is a webreference the value for that line in the new column should be the value from the column TURNOVER.
Create a Measure like below:
If I apply this to my case, it works exactly the other way around.
Hi @BartVlek
SalesLoc = IF('table'[web reference] in {blank(),""}, "Internet","Shop")
Thank you! What does it loojk like if I only need internetsales?
Hi @BartVlek
In that case use
SalesLoc = IF('table'[web reference] in {blank(),""}, "Internet",blank())
Also, with the question putting a desirable output is a good way for others to understand and help.
Not clear with the above statement.
IF(ISBLANK(Table[Webreference]),0,SUM(Table[Turnover]))
Regards,
Manikumar
Proud to be a Super User!
And sorry about the typos ...
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 40 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 150 | |
| 105 | |
| 63 | |
| 36 | |
| 36 |