Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
BartVlek
Helper II
Helper II

Help with filtering

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.

 

TurnoverWebreference

100

 
125 
75123456
11078910
90 
1 ACCEPTED SOLUTION

@BartVlek ,

Create a Measure like below:

New Measure = IF(MAX('Table2'[Webreference])=BLANK(),0,SUM('Table2'[Turnover]))
Capture.PNG
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

9 REPLIES 9
v-lionel-msft
Community Support
Community Support

Hi @BartVlek ,

 

Is this what you want?

v-lionel-msft_0-1612144089646.png

 

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.

 

BartVlek
Helper II
Helper II

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.

 

@BartVlek ,

Create a Measure like below:

New Measure = IF(MAX('Table2'[Webreference])=BLANK(),0,SUM('Table2'[Turnover]))
Capture.PNG
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

If I apply this to my case, it works exactly the other way around.

Anonymous
Not applicable

Hi @BartVlek 

SalesLoc = IF('table'[web reference] in {blank(),""}, "Internet","Shop")

Thank you! What does it loojk like if I only need internetsales?

Anonymous
Not applicable

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.

@BartVlek , 

Not clear with the above statement. 

IF(ISBLANK(Table[Webreference]),0,SUM(Table[Turnover]))

 

Regards, 

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




And sorry about the typos ...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.