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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Get and add a column with sum of all the duplicate values(from another column)

Each WO2 has multiple sequential station id's with checkoutdates. I need to only show the WO2's which have station id "1" in them. For this, I created DAX to show 1 if row has station 1 and 0 if it doesn't.
I want to sum the _hasid1 column and display as a column on right so that I can slicer the values that have sum(_hasid1)>0. But I keep getting random values when I sum it up.

smandadi_0-1717007861482.png

Here is the code I used. 

smandadi_1-1717008198048.pngsmandadi_2-1717008240190.png

Appreciate any help.

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

 

The Earlier function is mostly used in the context of calculated columns, not in mersure.
Reference post: Solved: EARLIER functionality in Measure - Microsoft Fabric Community

 

 

 

Best Regards,

Jayleny

 

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

Anonymous
Not applicable

Both are created as columns. I mistyped it as measure, I corrected it now. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.