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

Group by column, before adding a new conditional column.

Hello,

 

I need some help with adding an coditional column. I want to add the new conditional column (as shown down below) based on a group by on the column fact_data[Casenumber]. Is this even possible? If so, I would like to hear your suggestions!

 

Schermafbeelding 2022-09-07 103353.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

So in the PowerQuery code, I would like to add something like: "Table.Group("Casenummer"), or do it on another way if that's possible??

 

= Table.AddColumn(#"Removed Columns", "IncludeOrNot", each if [Max Werkordernummer] <> [Werkordernummer] then "N" else if [Min Werkordernummer] <> [Werkordernummer] then "N" else "Y")

 

Thanks in advance. 

1 REPLY 1
Jayaselvan
Helper II
Helper II

Could you please share a sample dataset either in excel or csv? If possible please share the pbi itself.

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.