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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Creating a table of later date rows using the Selected date in slicer

Hi,

I've the below data table for different tools information.

Application Name (Detailed)HostingLicensingTool LifeTarget Date
ABBYY Fine Reader (vendor)Cloud3rd PartySunset02-12-2020
ACM    
Adobe AcrobatOn-Prem3rd PartySunset02-12-2020
Adobe AcrobatOn-Prem3rd PartySunset02-12-2020
ALMD BuildCloudProprietarySunset02-01-2021
ALMD BuildCloudProprietarySunset02-01-2021
ALMD buildCloudProprietarySunset02-01-2021
ALMD buildCloudProprietarySunset02-01-2021
ALMD BuildCloudProprietarySunset02-01-2021
Antidote    
ApacheOn-PremFree-3rd PartyStrategic 
Apache xerces    
Australian Case Citator buildCloudProprietarySunset02-02-2021
Australian Case Citator buildCloudProprietarySunset02-02-2021
Australian Case Citator buildCloudProprietarySunset02-02-2021
Australian Case Citator buildCloudProprietarySunset02-02-2021
Australian Case Citator buildCloudProprietarySunset02-02-2021
Australian Case Citator buildCloudProprietarySunset02-02-2021
Australian Digest    

 

I'm trying to filter the rows with Target Date slicer and create another table. I'm looking to see the rows with date later than the selected slicer date. I also need to show the dinstinct count of "Application Name" column also after filter. 

Below is what I'm seeing now which shows all rows except the selected date. Can some one tell me which contect I'm missing.

Thank you.

 

Dates.png

1 ACCEPTED SOLUTION

Hi @Anonymous ,

You are welcome.

For your last question, did you mean create a filtered calculated table based on the selected slicer?

If so, I'm afraid it is not supported because a calulated table is only related with the source table columns and we can create it adding some columns to it based on some calculations, slicer in the report could not affect the calculated table.

Hopes it could help you to understand.

 

Best Regards,
Community Support Team _ Yingjie Li
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

6 REPLIES 6
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Based on your description, you need to create a date table based on the target date and use it as a slicer:

Date = DISTINCT('Table'[Target Date])

Then you can create a measure like this to filter the source table and distinct count the Application name column:

Distinct =
IF (
    ISFILTERED ( 'Date'[Target Date] ),
    IF (
        SELECTEDVALUE ( 'Table'[Target Date] ) >= SELECTEDVALUE ( 'Date'[Target Date] ),
        DISTINCTCOUNT ( 'Table'[Application Name (Detailed)] )
    )
)

distinct.png

Attached a sample file in the below, hopes to help you.

 

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

Anonymous
Not applicable

Hi @v-yingjl ,

Thanks for the help. I've already got this.

My need is to create a table of entries which has target date later than the selected date irrespective of the count. But the Distinct count of the tools to be displayed in a card. Hope this clarifies to help me more.

Thank you.

Hi @Anonymous ,

Create this visual control measure, put it in the table visual filter and set its value as 1:

Visual control = 
IF (
    ISFILTERED ( 'Date'[Target Date] ),
    IF (
        SELECTEDVALUE ( 'Table'[Target Date] ) >= SELECTEDVALUE ( 'Date'[Target Date] ),
        1,
        0
    )
)

filter.png

Create this measure to count and put it in the card visual as the above picture:

DistinctCount = 
CALCULATE (
    DISTINCTCOUNT ( 'Table'[Application Name (Detailed)] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Target Date] >= SELECTEDVALUE ( 'Date'[Target Date] )
    )
)

Attached the modified sample file in the below.

 

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

Anonymous
Not applicable

Hello @v-yingjl

When I continue working on my report, the Visual Control measure does not work when I select multiple dates or date range from the slicer. Is there any way to accomplish this..?
Thank you.

Anonymous
Not applicable

@v-yingjl 
Perfect, thank you.

 

One last curious query.

Can we create a table using the [Visual control] measure..? In other words, a replica of the filtered table..?

Hi @Anonymous ,

You are welcome.

For your last question, did you mean create a filtered calculated table based on the selected slicer?

If so, I'm afraid it is not supported because a calulated table is only related with the source table columns and we can create it adding some columns to it based on some calculations, slicer in the report could not affect the calculated table.

Hopes it could help you to understand.

 

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

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.