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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Phillysap
Frequent Visitor

Return Formula Showing up for other criteria not selected

Hey all!

 

I am trying to return a value based off a criteria for a social platform tiktok. All other platforms have impressions where as tiktok video views are impressions. So I am trying to isolate video views so I can do a formula like (facebook impressions +instagram impressions + tiktok impressions)

Phillysap_0-1680903092577.png

 

The issue I am having the return is getting attached to the other platforms.

 

This is the formula I have below.

Measure =
var _select=SELECTEDVALUE('Content'[Platform])
return
CALCULATE(SUM('Content'[Video view count]),'Content'[Platform]="tiktok")
 
Any help would be appreciated
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Phillysap , try like

 

Measure =
var _select=SELECTEDVALUE('Content'[Platform])
return
CALCULATE(SUM('Content'[Video view count]),filter( 'Content'[Platform], 'Content'[Platform]="tiktok") )

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Phillysap , try like

 

Measure =
var _select=SELECTEDVALUE('Content'[Platform])
return
CALCULATE(SUM('Content'[Video view count]),filter( 'Content'[Platform], 'Content'[Platform]="tiktok") )

Yes that worked!  so the filter is saying I just want it to show up for tiktok only @amitchandak ?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.