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
g-wizard
Frequent Visitor

Case Calc conversion

Hello Team,

I have a question on converting this calc into Dax in PowerBi.

 

CASE [Calc Pos%] WHEN [Time Period(Months)] THEN 1
ELSE 0 END

 

Calc Pos% is a database column with integers.

Time Period(Months) is a paramter 

1 REPLY 1
d_gosbell
Super User
Super User

If these are both columns in the same table then you could either use IF or SWITCH to do the same sort of logic in a calculated column. Or you could create a view in SQL and just pull in the result.

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 Carousel June 2024

Power BI Monthly Update - 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.