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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AdithyaVar
Frequent Visitor

Select 2 Random dates on Filters on main page and see the difference in status/value of projects .

Data is available in this manner

ProjectNameStausStart DateAmountReporting Date
1abcOpen7/1/2021100011/1/2021
2defClose7/5/2021200011/1/2021
3ghiCancelled6/2/2021300011/1/2021
4jklInactive8/4/2021400011/1/2021
5mnoInactive6/1/2021500011/1/2021
6pqrOpen7/18/2021600011/1/2021
7stuHold7/7/2021700011/1/2021
1abcHold7/19/2021100011/2/2021
2defClose7/5/2021250011/2/2021
3ghiCancelled6/20/2021300011/2/2021
4jklActive8/4/2021330011/2/2021
5mnoInactive6/1/2021500011/2/2021
6pqr 7/7/2021620011/2/2021
7stuHold7/7/2021700011/2/2021
1abcOpen7/1/2021120011/3/2021
2defClose7/5/2021250011/3/2021
3ghiCancelled6/2/2021011/3/2021
4jklActive8/4/2021330011/3/2021
5mnoActive6/1/2021525011/3/2021
6pqrOpen7/18/2021 11/3/2021
7stuHold7/7/2021700011/3/2021
8vwxOpen8/12/2021900011/3/2021
1abcOpen7/1/2021120011/4/2021
2defClose7/5/2021250011/4/2021
3ghiCancelled6/2/2021400011/4/2021
4jklInactive8/4/2021330011/4/2021
5mnoInactive6/1/2021525011/4/2021
6pqrOpen7/18/2021620011/4/2021
7stuHold7/7/2021740011/4/2021
1abcOpen7/1/2021120011/5/2021
2defClose7/5/2021250011/5/2021
3ghiCancelled6/2/2021400011/5/2021
4jklInactive 330011/5/2021
5mnoInactive6/1/2021525011/5/2021
6pqrOpen 620011/5/2021
7stuHold7/10/2021740011/5/2021
8vwxOpen8/12/2021900011/5/2021

 

Requirement is as shown below

AdithyaVar_0-1645423857011.pngAdithyaVar_1-1645423884086.png

 

Requirement: 2 Dates will be selected as filters on the main page. Based on the filters selected a table should be created so as to see the difference between status/values change between 2 dates.

 

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @AdithyaVar 

 

According to your description, you can create two date column tables for slicer and create measures to show your desired results.

Like this:

 

Startdate1 =
VAR a =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            [Project] = SELECTEDVALUE ( 'Table'[Project] )
                && [Name] = SELECTEDVALUE ( 'Table'[Name] )
                && [Reporting Date] = SELECTEDVALUE ( Tablemin[Date] )
        ),
        [Start Date]
    )
VAR b =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            [Project] = SELECTEDVALUE ( 'Table'[Project] )
                && [Name] = SELECTEDVALUE ( 'Table'[Name] )
                && [Reporting Date] = SELECTEDVALUE ( Tablemax[Date] )
        ),
        [Start Date]
    )
RETURN
    IF ( a <> b, a )

 

vjaneygmsft_0-1645699475377.pngvjaneygmsft_1-1645699488638.png

vjaneygmsft_0-1645782390782.png

vjaneygmsft_1-1645782587791.png

 

 

 

Best Regards,

Community Support Team _Janey

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

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @AdithyaVar 

 

According to your description, you can create two date column tables for slicer and create measures to show your desired results.

Like this:

 

Startdate1 =
VAR a =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            [Project] = SELECTEDVALUE ( 'Table'[Project] )
                && [Name] = SELECTEDVALUE ( 'Table'[Name] )
                && [Reporting Date] = SELECTEDVALUE ( Tablemin[Date] )
        ),
        [Start Date]
    )
VAR b =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            [Project] = SELECTEDVALUE ( 'Table'[Project] )
                && [Name] = SELECTEDVALUE ( 'Table'[Name] )
                && [Reporting Date] = SELECTEDVALUE ( Tablemax[Date] )
        ),
        [Start Date]
    )
RETURN
    IF ( a <> b, a )

 

vjaneygmsft_0-1645699475377.pngvjaneygmsft_1-1645699488638.png

vjaneygmsft_0-1645782390782.png

vjaneygmsft_1-1645782587791.png

 

 

 

Best Regards,

Community Support Team _Janey

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@AdithyaVar , check if this can help

 

//Difference between two selected dates, Assume range as been selected. A date table
diff =
var _max = maxx(allselected('Date'),'Date'[Date])
var _min = maxx(allselected('Date'),'Date'[Date])
return
if( calculate( Max(Table[Status]), filter('Date', 'Date'[Date]=_min )) <>
calculate( Max(Table[Status]), filter('Date', 'Date'[Date] =_max )) , "Changed", "New")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors