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
bzeeblitz
Helper IV
Helper IV

Measure notactioned

I have list1 and list2

 

List1 has Item number,Date fields

List2 has item number,Date,status

 

1.

How to create measure to get itemnumber based on the Date from list1

 

2.how to get list1 itemnumber which status is not actioned since we don't have status field in list1.

2 ACCEPTED SOLUTIONS
bhanu_gautam
Super User
Super User

@bzeeblitz Make sure that list1 and list2 are related by the item number field. You can create a relationship in the "Model" view in Power BI.

 

DAX
ItemNumberMeasure =
VAR SelectedDate = SELECTEDVALUE(list1[Date])
RETURN
CALCULATE(
FIRSTNONBLANK(list2[Item number], 1),
list2[Date] = SelectedDate
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

@bzeeblitz Check data type in both of them Table

 

ItemNumberMeasure =
VAR SelectedDate = SELECTEDVALUE(list1[Date])
RETURN
CALCULATE(
FIRSTNONBLANK(list2[Item number], 1),
list2[Date] = VALUE(SelectedDate)
)

 

Additionally, to get the item numbers from list1 where the status in list2 is not "actioned", you can create a measure like this:

NotActionedItemNumbers =
CALCULATE(
CONCATENATEX(
FILTER(
list1,
RELATED(list2[Status]) <> "actioned"
),
list1[Item number],
", "
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

3 REPLIES 3
bhanu_gautam
Super User
Super User

@bzeeblitz Make sure that list1 and list2 are related by the item number field. You can create a relationship in the "Model" view in Power BI.

 

DAX
ItemNumberMeasure =
VAR SelectedDate = SELECTEDVALUE(list1[Date])
RETURN
CALCULATE(
FIRSTNONBLANK(list2[Item number], 1),
list2[Date] = SelectedDate
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






I'm getting error fetching Data for the visual calculation error in measure.dax comparison operations do not support comparing values of type Date with values of type text.consider using the value or format function to convert one of the values

@bzeeblitz Check data type in both of them Table

 

ItemNumberMeasure =
VAR SelectedDate = SELECTEDVALUE(list1[Date])
RETURN
CALCULATE(
FIRSTNONBLANK(list2[Item number], 1),
list2[Date] = VALUE(SelectedDate)
)

 

Additionally, to get the item numbers from list1 where the status in list2 is not "actioned", you can create a measure like this:

NotActionedItemNumbers =
CALCULATE(
CONCATENATEX(
FILTER(
list1,
RELATED(list2[Status]) <> "actioned"
),
list1[Item number],
", "
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.