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
piotr_gor
Helper II
Helper II

Return Date if ISINSCOPE of Customer

Hi, 

I want to create measure that returns Date of Document if in matrix I'm in scope of Customer. 

 

That's my sample data:

Customer NameDocumentDateSales Amount
Customer1FV101.01.2023 €            100,00
Customer1FV201.02.2023 €            150,00
Customer1FV305.01.2023 €            150,00
Customer1FV421.01.2023 €              25,00
Customer1FV523.01.2023 €            200,00
Customer2FV101.01.2023 €        1 000,00
Customer2FV213.01.2023 €            500,00

 

And what I want to achieve is something like that:

piotr_gor_0-1675281532711.png

 

How do I achieve that? 

Tried to use code like below but it didn't work:

Measure = 
IF( 
  ISINSCOPE(  'Table'[Customer] ),
  MAXX ( 'Table', 'Table'[Data] ) 
)

1 REPLY 1
Padycosmos
Solution Sage
Solution Sage

Hope this helps

Padycosmos_1-1675284694826.png

 

 

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.