cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
blokesh23
Helper I
Helper I

Any alternative for if-else-if statement apart from custom column which can prevent data refresh

We have loaded huge volume of data(> 1M) from database into PowerBI through ODBC connection.

Need to create a custom column based on if-else-if statement with several and conditions . I have used Custom column option but once I apply changes , the report is again hitting DB for loading data which is taking lot of time.

 

Is there any other alternative where we can prevent report refreshing data from database.

 

Thanks !

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@blokesh23 , In power query it will. In DAX you can use Switch, bit costly but will work with loaded data

 

Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56

View solution in original post

v-jayw-msft
Community Support
Community Support

Hi @blokesh23 ,

 

You could try unchecking the Enable load option before creating custom column and enable it after the columns being created.

2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
blokesh23
Helper I
Helper I

Thanks worked as expected

v-jayw-msft
Community Support
Community Support

Hi @blokesh23 ,

 

You could try unchecking the Enable load option before creating custom column and enable it after the columns being created.

2.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@blokesh23 , In power query it will. In DAX you can use Switch, bit costly but will work with loaded data

 

Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors