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
BYENER
Helper V
Helper V

Lookup columns and return a date value

Hi All,

 

I want to show in a matrix visual the count of [date] from table B per day [date] table C per [step] table B. Table C has a table join with table A. At the moment the matrix count all rows in table B, but I only want a count of the rows where the [SN] date in table A is the same as the date in the matrix. See below an example in Excel. 

Screen Shot 2020-01-09 at 13.21.50.png

1 ACCEPTED SOLUTION

Create a column like this in B. If date exits mean it is in A

 

maxx(filter(table A, table A[SNO] = Table B[SNO]),table A[date])

View solution in original post

5 REPLIES 5
BYENER
Helper V
Helper V

I tried to solve it with using a calculated column - lookupvalue(tableA[date],tableA[SN],tableB[SN]) - but I got a #error - A table of multiple values was supplied where a single value was expected.

Try

lookupvalue(tableA[date],tableA[SN],firstnonblank(tableB[SN],true()))

the same error.

Create a column like this in B. If date exits mean it is in A

 

maxx(filter(table A, table A[SNO] = Table B[SNO]),table A[date])

thank you this solution is working good.

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.