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
ahussnain
Frequent Visitor

List from DAX Measure based on "date up to" - and use in slicer/filter/table

 

I cannot use LIST/Columns of values returned from a dax measure. Seems DAX measure has to return only one value. Are their any ways around for my scenario below:

 

I am deploying equipment at locations which I record in Location Table, and I have records of equipment use at each location.

tbl_Location = columns{Location | Date}

tbl_Usage = columns{Location | Date | By | Duration}

 

I want to select a month, and then want to see a list of locations where the equipment was deployed up to that date.  

 

For example

Location

LocA 13-Jan-2017

LocB 15-Feb-2017

LocC 10-Mar-2017

 

A month based filter on Feb/17 should show {LocA, LocB} in the other table/drop-down. [The default behavior would show only LocB against this filter, so I have to write DAX]

 

Then I'll select a value from the table/drop-down to apply further filters on Usage Table data.

 

 

1 ACCEPTED SOLUTION
Phil_Seamark
Employee
Employee

Hi @ahussnain

 

This can be achieved through the use of un-related tables and the use of a measure as a filter. 

 

I mocked something similar up earlier for someone else that you might like to adapt.

 

https://1drv.ms/u/s!AtDlC2rep7a-oD0hNMo_6maOMyVY

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Phil_Seamark
Employee
Employee

Hi @ahussnain

 

This can be achieved through the use of un-related tables and the use of a measure as a filter. 

 

I mocked something similar up earlier for someone else that you might like to adapt.

 

https://1drv.ms/u/s!AtDlC2rep7a-oD0hNMo_6maOMyVY

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thanks, I get the idea. I'll apply this pattern to my situation.

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.