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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Monthly Update - June 2024

Power BI Carousel June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.