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
Coryanthony
Helper III
Helper III

Measure help (Brain fog)

Hello, 

I need to create a "target per hour " measure and I am completely stuck. 

 

If PTE/GM/CB Case, then 2 per hour

if SNOW Case, then 4 per hour.

 

The PTE/GM/CB and SNOW cases are different table. 

 

Coryanthony_2-1683638385568.png

 

Please Help. Thank you 

 

 

 

 

7 REPLIES 7
Mahesh0016
Super User
Super User

@Coryanthony  Please Try Below Code

Test =
SWITCH (
SELECTEDVALUE ( Table[column] ),
"PTE/GM/CB Case", 2,
"SNOW Case", 4,
[Defualt Measure]
)



@Coryanthony If this post helps, then please consider accepting it as the solution to help other members find it more quickly.

Hi @Mahesh0016 , thank you for your response. the solution does not appear to be working. Please see my current measure for "PTE/CB/GM Count" and "SNOW case count". Hopefully this provides additional information and helps. Thanks again. 

 

Measures: 

PTE/CB/GM Count = COUNT(PTE_CB_GM[Number])

SNOW Case Count = Count(SNOW[Number])

@Coryanthony Please Share expected Output in table formatted.THANK YOU!!

@Mahesh0016 Hi, please see below. Thaank you 

Coryanthony_0-1683729054315.png

 

@Coryanthony  you want to under PTE/CB/GM Every value consider as 2 and Snow Value as 4 ,i'm right or wrong .Plaese Guide Further.

 hi @Mahesh0016 

that is correct

@Coryanthony 

PTE/CB/GM Count = IF(COUNT(PTE_CB_GM[Number])>=0,2,COUNT(PTE_CB_GM[Number]))

SNOW Case Count = IF(COUNT(Count(SNOW[Number])>=0,4,Count(SNOW[Number]))
**************************************************************************************************

Measures: 

PTE/CB/GM Count = COUNT(PTE_CB_GM[Number])

SNOW Case Count = Count(SNOW[Number])

Measure 1 = IF([PTE/CB/GM Count]>=0,2)
Measure 2 = IF([SNOW Case Count]>=0,4)

THANK YOU!!



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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.