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! Get ahead of the game and start preparing now! Learn more
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! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |