cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerWhat Frequent Visitor
Frequent Visitor

Measure syntax / best approach

Probably a really simple one, but I can't figure this out...

 

I've been trying to create a new measure :

  1. Qualified:= GameTime < TimeOut

 

Dim.GameType

GameKey, Name, TimeOut

1, Runner, 600

2, Jumper,300

 

Fact.Game

GameKey, Speed,SessionKey

1, 210,1

1, 300,1

1,50,2

1,300,2

 

Measure: GameTime:=SUM(Fact.Game[Speed])

 

So the data here should show two individual game sessions, one of 510 ms, the other 350ms which should be evaluated against the corresponding Game Type's TimeOut. There is a relationship on the GameKey between the two tables in AAS.

 

Can anyone offer a pointer for me please?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Measure syntax / best approach

@PowerWhat try this measure

 

Qualified = 
VAR __TimeOut = CALCULATE( MAX( GameType[TimeOut] ), CROSSFILTER( GameData[GameKey], GameType[GameKey], BOTH ) )
RETURN [GameTime] < __TimeOut





Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

2 REPLIES 2
Super User
Super User

Re: Measure syntax / best approach

@PowerWhat try this measure

 

Qualified = 
VAR __TimeOut = CALCULATE( MAX( GameType[TimeOut] ), CROSSFILTER( GameData[GameKey], GameType[GameKey], BOTH ) )
RETURN [GameTime] < __TimeOut





Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

PowerWhat Frequent Visitor
Frequent Visitor

Re: Measure syntax / best approach

Just what I needed, thanks! 

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)