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
earltom
Frequent Visitor

FInd Max Value for a Date and Customer and then display that value in ALL dates

BI.jpg

The original data is on Top and my attemped solution is below that , the data is time dependant so it may change as year goes by.

I am able to get the data for the date selected but I would like it to display/overwrite in all rows/dates for that customer

 

DAX

sel_we_dt is a measure - Selected Value (date)

 

mTest3 = CALCULATE(MAX('Store List'[scan_lfl]),FILTER(('Store List'),[date_sk]=[sel_we_dt]))

 

3 REPLIES 3
earltom
Frequent Visitor

CustomerEnd of WeekGood/Bad Store IndSales
2766-Mar-22N1000
27613-Mar-22Y2000
27620-Mar-22Y1500
27627-Mar-22Y1700
2763-Apr-22N800

 

A store has sales every week and they ae classified as good or bad store by its Sales ,if a user makes a data selection I want the Good/Bad Indicator to overwrite the other weeks to that weeks Good/Bad Ind.

 

So if 27-Mar-22 is selected then the table should be :

 

CustomerEnd of WeekGood/Bad Store IndSales
2766-Mar-22Y1000
27613-Mar-22Y2000
27620-Mar-22Y1500
27627-Mar-22Y1700
    

 

or  3-April-2022 is selected then table should look like this but there are multiple customers so it needs to be grouped by each customer

 

CustomerEnd of WeekGood/Bad Store IndSales
2766-Mar-22N1000
27613-Mar-22N2000
27620-Mar-22N1500
27627-Mar-22N1700
2763-Apr-22N800
amitchandak
Super User
Super User

@earltom , The information you have provided is not making the problem clear to me. Can you please explain with an example.
refer if this blog can help

https://medium.com/chandakamit/power-bi-when-i-felt-lazy-and-i-needed-too-many-measures-ed8de20d9f79

 

Instead of max date based on selection, it can based on customer

calculate(Max(Table[Date]), filter(allselected(customer), Customer[ID] = max(Customer[ID]) ) )


Appreciate your Kudos.


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

The date is a selected value 

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.