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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Case statement from DQ

Hello folks,
My data source comes from an oracle DB which I'm using as a direct query.
The column I need to use is a decimal number type of data, which I cannot change in Power Query.
I need to create a new column with the range below, but I'm not sure how as I've tried creating a calculated column using SWITCH and a measure using IF. I'm also, not sure if I should change the data type within the measure from decimal to whole number.
If you could tell me how I can create a case statement to have a new column with the range below, it would be incredibly helpful. Many thanks! 

 

ROG_BI22_1-1650229526760.png

 



Below is a measure that I tried using the 'IF' statement, but it's wrong.

ROG_BI22_0-1650229447855.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Please give comma(,)  after True()

 

Also if this is a measure,  It will take measure

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Please give comma(,)  after True()

 

Also if this is a measure,  It will take measure

Anonymous
Not applicable

Thank you so much @amitchandak 
I'm glad it was a simple fix. 😉

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.