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

Slicer help - filter events based on another time period/connection type

I have two tables:

  1. a table that records when a device's radio connection changes
  2. a table that records when an application is opened on a device

Ultimately I want to know which applications were opened during a certain radio connection type. Ex: show all applications used during a "cellular" connection time period. I would like to have a slicer for the connection type that filters both tables.

I have an example of the records I am using along with an example of the data model. I tried to show how I expect the results to be filtered.

Should I add a custom column using dax in the application table that looks up what connection was being used by the device when the application was opened? Or should I have the connection type recorded along with application name in application table from the source? Then use a slicer with connection type from the application table?

Any help or recommendations on solving this is much appreciated! Thank you!



example records.png

 

example diagram.png

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @ericperez92 ,

Here are the steps you can follow:

1. Create measure.

Measure =
CALCULATE(MAX('Applications Table'[Application Name]),FILTER('Applications Table',
'Applications Table'[TimeStamp]>=MAX('Connection Table'[TimeStamp])
&&
'Applications Table'[TimeStamp]<=MAX('Connection Table'[Next Timestamp])
))

2. Result

v-yangliu-msft_0-1607587552669.png

 

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

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

View solution in original post

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @ericperez92 ,

Here are the steps you can follow:

1. Create measure.

Measure =
CALCULATE(MAX('Applications Table'[Application Name]),FILTER('Applications Table',
'Applications Table'[TimeStamp]>=MAX('Connection Table'[TimeStamp])
&&
'Applications Table'[TimeStamp]<=MAX('Connection Table'[Next Timestamp])
))

2. Result

v-yangliu-msft_0-1607587552669.png

 

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

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

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.