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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Making a column = it self

I have no idea, if this is possible, but i have searched alot for answer without really finding any. 

Im sorry i cant post my file, but since its against company policy i will try to explain it as good as i can. 

 

Basically i want to see if a site is open on a specific date of this and last year. The way i was thinking was to check if there is any net sales on a date. 

 

So i have these columns: Basecat, Site.No, Date, Net Sales, Net Sales LY. 

 

The way i was thinking it should work is saying: =calculate(sum(Data[Net Sales]), Data[Site.no]=Data[Site.No], Data [Date]=Data[Date])

I have tried with and filter(earlier()), but it dosnt seem to sum it correctly. 

 

Hope someone can help me witht this. 

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Can you create a data sample?

 

Best Regards,
Mariusz

Please feel free to connect with me.
Mariusz Repczynski


a data sample?

 

Anonymous
Not applicable

Hi @Mariusz 

 

It seems that i can't upload a file, but here is a screenshot of my sample, so in the column Closed TY and Closed LY i want it to sum up all the Net Sales from that day on one site. 

Hope it makes sense. 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.