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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Shreesefwere
Helper IV
Helper IV

case condition power bi

 

Hi Expert,

 i wanted to use case condition as follows in SSAS

case when table1.x=1 then winter else table2.b

 

 

 

 

Shreesefwere_0-1687222596324.png

 

expected output

Shreesefwere_0-1687222853331.png

 

 

 

3 REPLIES 3
Shreesefwere
Helper IV
Helper IV

Sir,

it is requires in SSAS

@Shreesefwere , I think you can merge the table in SSAS and then use a similar formula in DAX

 

if ([a.x] = 1, [a.y] , [b.b])

amitchandak
Super User
Super User

@Shreesefwere , Use merge in power query using column a and X

 

and then create a new column in power query

if [a.x] = 1, then [a.y] else [b.b]

 

Merge Tables (Power Query) : https://youtu.be/zNrmbagO0Oo

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.