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
Anonymous
Not applicable

LOB Type in group by Clause - SAP HANA - Custom Column Error

Hello,

 

I have datasource as SAP HANA. The odbc and connection everything works fine. 

 

But I am getting this weird issue when I am creating a custom column. Moreover, if I remove [CUST_NAME] from the formula then it works fine. But I do need CUST_NAME in the formula. Not able to narrow it down. TIA.

 

Ritz_ABC_0-1661034321974.png

This is the step where it is failing.

Ritz_ABC_1-1661034421974.png

 

Thanks,

-RK

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Can make sure [Group Name] , [#"Sold to party"] and [Cust_Name] all three are of text data type before this step

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
Anonymous
Not applicable

@amitchandak  I made all of them text in PowerBI but it still didn't work. I tried this and this seemed to work, can't quite understand why....

 

Old Formula = if [Group v Sold to] = "G" then [GROUP_NAME] else [#"Sold-to party"]&" - "&[CUST_NAME] New Formula = if [Group v Sold to] = "G" then [GROUP_NAME] else if [Group v Sold to] <> "G" then [#"Sold-to party"] &" - "&[CUST_NAME] else 1

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