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
AlAlawiAlawi
Helper I
Helper I

Change Values after Comparing it to the Filtered Date

Hi Guys,

 

Long Story Short in the Screen Shot Below

What_should_I_do

I am trying to get what deals were in progress on that previous day, Ideally I would have a date range but I thought to simplify the issue lets choose 1 Day as a filtered in the Pivot Table above.

 

I need a Measure That Checks the Date Filtered Value then Calculates if the Called In Date >= Filtered Date && Invoiced Date <= Filtered Date.

 

What is Filtered Date (Slicer Values) ? What should I put in the Slicer as a field ? Do I need to Create a separate Table for this ?

BI

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @AlAlawiAlawi,

 

You may need to create an extra date table similar to:

Dimdate =
CALENDAR ( DATE ( 2018, 1, 1 ), DATE ( 2018, 12, 31 ) )

Add 'Dimdate'[Date] column into slicer.

 

Then, you can create such a measure:

CountID =
CALCULATE (
    COUNT ( table[ID] ),
    FILTER (
        table,
        table[Called In Date] >= MAX ( 'Dimdate'[Date] )
            && table[Invoiced Date] <= MAX ( 'Dimdate'[Date] )
    )
)

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @AlAlawiAlawi,

 

You may need to create an extra date table similar to:

Dimdate =
CALENDAR ( DATE ( 2018, 1, 1 ), DATE ( 2018, 12, 31 ) )

Add 'Dimdate'[Date] column into slicer.

 

Then, you can create such a measure:

CountID =
CALCULATE (
    COUNT ( table[ID] ),
    FILTER (
        table,
        table[Called In Date] >= MAX ( 'Dimdate'[Date] )
            && table[Invoiced Date] <= MAX ( 'Dimdate'[Date] )
    )
)

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.