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
pbi_besi
New Member

Latest Record by Multiple First Dates

Hi Community, 

 

I want to show the next scheduledend date (date) in one column and the due type (phone call, task, etc.) in another column.

 

Problem:

If I now have two different due types on the same scheduledend date, it shows me both.

pbi_besi_0-1678101366096.png

 

Goal:

No matter which of the two due types is displayed, I would like to have only 1 due type displayed (not both).

 

My DAX currently (that does not work:

 

Next Activity Typecode = 
VAR _NextActivityDate =  
    MIN('Aktivitäten'[scheduledend])
return
    CALCULATE(
            MIN('Aktivitäten'[activitytypecode_name_open]),
            FILTER('Aktivitäten','Aktivitäten'[scheduledend]=_NextActivityDate)
    )

 

 

Can someone help me achieve the goal?

1 ACCEPTED SOLUTION
BeaBF
Impactful Individual
Impactful Individual

@pbi_besi try:

Next Activity Typecode = VAR _NextActivityDate =
MIN('Aktivitäten'[scheduledend]) RETURN FIRSTNONBLANK( DISTINCT( FILTER('Aktivitäten', 'Aktivitäten'[scheduledend] = _NextActivityDate), 'Aktivitäten'[activitytypecode_name_open] ), 1 )

 

BBF

View solution in original post

6 REPLIES 6
pbi_besi
New Member

@BeaBF  Thank you for your help. 

Unfortunately, the column now shows me no values at all. Do you know what this could be?

The remaining columns are from another table...

BeaBF
Impactful Individual
Impactful Individual

@pbi_besi try:

Next Activity Typecode = VAR _NextActivityDate =
MIN('Aktivitäten'[scheduledend]) RETURN FIRSTNONBLANK( DISTINCT( FILTER('Aktivitäten', 'Aktivitäten'[scheduledend] = _NextActivityDate), 'Aktivitäten'[activitytypecode_name_open] ), 1 )

 

BBF

@BeaBF Thank you both!
@FreemanZ FYI

hi @pbi_besi 

the screenshot, is it table visual or data table?

hi @Freeman 

it is a table visual

can you make screenshot with a full overview of the table visual?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors