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
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.

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.