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! Learn more

Reply
Chanleakna123
Post Prodigy
Post Prodigy

How to Apply Monthly Target to put in Line Chat to See by Day based on Calculation

 

hi all , 

i have 2 tables , 1 is Target Table , 1 is Actual NSR Table and another 1 is Date Table.

All Table are in Relationship together. 

I use the Formula to get DRR Actual NSR  by : Target Table / Working day ( based on Month ) . 

My Problem is : i want DRR Actual NSR to be apply to All Day during the Month

The problem isI have only Monthly Target , Not Daily Target , But i needs to track sales by Day , with DRR ( Daily Run Rate ) . 

 

My Purpose is to see the same numer of 370,792 in All Day based on Month i select , 

everything is based on month selected , DRR will be differeent by Month . 

 

1.PNG

1 ACCEPTED SOLUTION
AntrikshSharma
Super User
Super User

"i want DRR Actual NSR to be apply to All Day during the Month" Does this help? if not, then please upload the file.

CALCULATE([DRR Actual NSR], ALL( Dates[Date] ) )

 

View solution in original post

10 REPLIES 10
AntrikshSharma
Super User
Super User

"i want DRR Actual NSR to be apply to All Day during the Month" Does this help? if not, then please upload the file.

CALCULATE([DRR Actual NSR], ALL( Dates[Date] ) )

 

@AntrikshSharma it's work , thanks you so much , cheers

amitchandak
Super User
Super User

@Chanleakna123 , Try a measure like

sumx(summarize(table, Date[Month Year],"_1", calculate(max(Table[DRR Actual NSR]),filter(all(Date),Date[Month Year] =max(Date[Month Year])))),[_1])
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

hi @amitchandak  , i am sorry i didn't get it . what is _1 here ? 
need further explanation. 

sorry 

It is a virtual column of the virtual table created inside SUMMARIZE so that it can be used later in other functions calling it. Another version of this measure is below which is a good practice as SUMMARIZE should only be used for Grouping.

 

Measure =
SUMX (
    ADDCOLUMNS (
        SUMMARIZE ( table, Date[Month Year] ),
        "MyNewColumn", CALCULATE (
            MAX ( Table[DRR Actual NSR] ),
            FILTER ( ALL ( Date ), Date[Month Year] = MAX ( Date[Month Year] ) )
        )
    ),
    [MyNewColumn]
)

 

 

@AntrikshSharma @amitchandak 

Both aren't work 😞

1.PNG2.PNG

This is because inside MAX you have a measure, use a column on which you want to use MAX or just remove the MAX and use the measure.

@Chanleakna123 , no need of max on DRR actual NSR as it is already a measure

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

@amitchandak @AntrikshSharma , i have tested both measure , but aren't work and both shown the same result of 5475 instead of 16235 is the right number

 

1.PNG

@Chanleakna123 , I am creating a table using summarize in formula , in that see there is a column _1 , when I refer that i need to use [_1]

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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