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

DAX Formula for location with Date Visited

Hello all and thank you in advance. 

 

I have a report that deals with stores and visits. I would like to be able to create a chart that shows stores with "Missed Visit" for the week.

Example:

Store #CityState9/8/20249/9/20249/10/20249/11/20249/12/20249/13/20249/14/2024Visited/Missed
3023SAN JOSECA1011111Visited
3090ROCKLINCA0000000Missed
3126AURORACO0000100Visited
3144PORTLANDOR0000001Visited
4147MORRISVILLENC0000000Missed
4182PLANOTX0100000Visited
4415El PasoTX0000000Missed
4603TUCSONAZ0001100Visited
5007VACAVILLECA0000000Missed
5603DOWNEYCA0000000Missed
5606WOODLANDCA0011100Visited
5609VALLEJOCA0110000Visited
5627GRESHAMOR0000000Missed
5653ORANGE BEACHAL0001111Visited
5855WICHITAKS0101010Visited
5990WICHITAKS0000000Missed
1063GENEVAAL0000000Missed
1067HALLETTSVILLETX0000000Missed
1095GLENWOOD SPRINGSCO0000000Missed
1119NAPLESFL0000000Missed
1138MADISONWI1111111Visited
1159NEW TAZEWELLTN0111110Visited
116VivianLA0011010Visited
1166ELIZABETHTOWNNC0000000Missed
117BROKEN BOWOK0000000Missed
1175FLAGSTAFFAZ0000000Missed
1189BARBOURVILLEKY0000000Missed

 

I created the Missed/Visited formula whish sort of gives me what I need, except when I filter to missed (That is all we care) everything becomes "Missed" even the stores that were visited the other days. Not sure if its possible to create a table that has all stores that were truly missed for the week and this data would change daily as the updates come through. 

 

This is the formula I have for Visited/Missed 

Visited/Missed= Calculate( IF( Date>1, "Visited", Calculate(IF(Date=0,"Missed"))))

 

Thank you all! 

 

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi  @Cio , 

 

Have a good day. Have you resolved the issue? If the issue persists, could you provide sample data?

Now I know that "Date" is the day of the week from your reply. Howerver I still don't know what the table structure is like.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

 

Best Regards,

Wearsky

HotChilli
Super User
Super User

You've gone nuts with the 'calculate' keyword.

Let's start again.

'Visited/Missed' is a calculated column?

What does it refer to ? A specific date?
"I would like to be able to create a chart that shows stores with "Missed Visit" for the week." What would this look like?

Cio
Frequent Visitor

Yes sorry, Visited/Missed is a calculated column. 

The date is for the dates in the week. We are looking one week at a time and the stores have projects that run daily. 

And this is what it would look like. 

Store #CityStateMissed Visits
3090ROCKLINCAMissed
4147MORRISVILLENCMissed
4415El PasoTXMissed
5007VACAVILLECAMissed
5603DOWNEYCAMissed
5627GRESHAMORMissed
5990WICHITAKSMissed
1063GENEVAALMissed
1067HALLETTSVILLETXMissed
1095GLENWOOD SPRINGSCOMissed
1119NAPLESFLMissed
1166ELIZABETHTOWNNCMissed
117BROKEN BOWOKMissed
1175FLAGSTAFFAZMissed
1189BARBOURVILLEKYMissed

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