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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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