Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.