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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ACM_1000
New Member

contract end date in the next 90 days

Hi all, 

 

I am trying to create a formula which will identify contract end dates which end 60 & 90 days from today's date. 

 

The current DAX syntax I am trying is 

= CALCULATE(SUM(Table1[Service Level End]),DATE(Table1[Todays Date],+60,DAY))
 
 
I created a column "today's date" which calculates the current day's date. The "service level end" is the column which has the end date of a customer's specific contract. 
 
Thank you
1 ACCEPTED SOLUTION

Hi @ACM_1000 ,

 

Use three separate card visuals to display below three measures.

30 days =
CALCULATE (
    DISTINCTCOUNT ( Source_table[Customer Name] ),
    FILTER (
        ALLSELECTED ( Source_table ),
        Source_table[Service Level End] + 30
            = TODAY ()
    )
)

60 days =
CALCULATE (
    DISTINCTCOUNT ( Source_table[Customer Name] ),
    FILTER (
        ALLSELECTED ( Source_table ),
        Source_table[Service Level End] + 60
            = TODAY ()
    )
)

90 days =
CALCULATE (
    DISTINCTCOUNT ( Source_table[Customer Name] ),
    FILTER (
        ALLSELECTED ( Source_table ),
        Source_table[Service Level End] + 90
            = TODAY ()
    )
)

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

7 REPLIES 7
ACM_1000
New Member

Out of the list below, I am trying to create 3 separate KPI tiles that show how many customers have a service level end date in the next 30 days, 60days, and 90days. 

 

I put the simple formula in the last column =TODAY()

 

This would reference the counting point of +30, +60, +90. 

            

 

                                                                            Service Level Start, Service Level End, Todays Date

Customer IDCustomer Name
123A10/17/201410/16/20193/7/2019
334B12/4/201812/3/20213/7/2019
689C4/1/20173/31/20203/7/2019
2D1/1/201912/31/20233/7/2019
3E9/29/20179/28/20223/7/2019
5F1/1/201812/31/20213/7/2019
6G4/1/20183/31/20233/7/2019
7H3/1/20192/29/20243/7/2019
88I1/1/201811/30/20193/7/2019
3J6/28/20166/27/20213/7/2019
45K8/31/20178/30/20203/7/2019
76L1/1/201912/31/20213/7/2019
77M2/16/20182/15/20203/7/2019
78N5/1/20174/30/20223/7/2019
99O6/28/20189/2/20223/7/2019
100P4/28/20184/27/20233/7/2019
23Q2/16/20192/15/20203/7/2019
44R10/1/201812/31/20213/7/2019
567S6/29/201812/31/20213/7/2019
75T9/30/20169/29/20193/7/2019
556U12/21/201612/31/20213/7/2019
223V5/4/20185/3/20203/7/2019
445W10/1/20149/30/20193/7/2019
7765X12/13/201712/12/20203/7/2019
44576Y5/1/20174/30/20203/7/2019
55432Z10/22/201810/21/20233/7/2019

Hi @ACM_1000 ,

 

Use three separate card visuals to display below three measures.

30 days =
CALCULATE (
    DISTINCTCOUNT ( Source_table[Customer Name] ),
    FILTER (
        ALLSELECTED ( Source_table ),
        Source_table[Service Level End] + 30
            = TODAY ()
    )
)

60 days =
CALCULATE (
    DISTINCTCOUNT ( Source_table[Customer Name] ),
    FILTER (
        ALLSELECTED ( Source_table ),
        Source_table[Service Level End] + 60
            = TODAY ()
    )
)

90 days =
CALCULATE (
    DISTINCTCOUNT ( Source_table[Customer Name] ),
    FILTER (
        ALLSELECTED ( Source_table ),
        Source_table[Service Level End] + 90
            = TODAY ()
    )
)

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.

Hi Yuliana Gu, 

 

Thank you so much for the response. I am not getting any populated data in the card. 

 

power bi_1.png

Hi @ACM_1000 ,

 

You need a Card visual rather than Column chart visual.

1.PNG

 

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.

Hi @v-yulgu-msft ,

 

I am using a card visual and getting the same results. 

 

2019-03-20_7-07-36.png

Hi @ACM_1000 ,

 

New measures intead of calculated columns.

1.PNG

 

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.
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @ACM_1000 ,

 

Please illustrate your scenario with sample data and desired output, as mentioned: 

How to Get Your Question Answered Quickly

 

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.