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
Anonymous
Not applicable

Delta / Difference with daily target vs multiple entries per day

Hi Everyone,

 

Really thankful for any guidance here. My problem is as below, I have a daily target to hit, and there are multiple entries each day, so my tables are currently giving the incorrect daily, monthly delta. I am getting the value on the left, where the daily delta is being added each entry. I want to sum all of the solds essentially but only sum the unique delta value e.g. once per day. Any ideas? 

 

georgeash_0-1646848477076.png

 

It doesn't need to be shown as above in the table, I just need the dashboard to return the correct difference/delta, rather than adding the targets each day so that the goal is much higher and the gap much larger.

 

Thanks a lot,

 

George

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

Hi @Anonymous ,

According to your description, here's my solution.

1.In Power Query, add an index column.

vkalyjmsft_0-1647241964199.png

vkalyjmsft_1-1647242062304.png

2.Create a calculated column.

Delta =
IF (
    'Table'[Index]
        = MAXX (
            FILTER ( ALL ( 'Table' ), 'Table'[Date] = EARLIER ( 'Table'[Date] ) ),
            'Table'[Index]
        ),
    SUMX (
        FILTER ( ALL ( 'Table' ), 'Table'[Date] = EARLIER ( 'Table'[Date] ) ),
        'Table'[Sold]
    ) - 'Table'[Daily Target],
    BLANK ()
)

Get the expected result.

vkalyjmsft_2-1647242160536.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

View solution in original post

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution.

1.In Power Query, add an index column.

vkalyjmsft_0-1647241964199.png

vkalyjmsft_1-1647242062304.png

2.Create a calculated column.

Delta =
IF (
    'Table'[Index]
        = MAXX (
            FILTER ( ALL ( 'Table' ), 'Table'[Date] = EARLIER ( 'Table'[Date] ) ),
            'Table'[Index]
        ),
    SUMX (
        FILTER ( ALL ( 'Table' ), 'Table'[Date] = EARLIER ( 'Table'[Date] ) ),
        'Table'[Sold]
    ) - 'Table'[Daily Target],
    BLANK ()
)

Get the expected result.

vkalyjmsft_2-1647242160536.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

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