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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

HOW TO WRITE THIS formula

Hy all I want to write a formula that if this thing is in between 1 & 2 then show the output ,Please tell me how to write this in power bi it will be helpful please reply as fast as you can. , it would be aprreciated.

1 ACCEPTED SOLUTION

@Anonymous a new column, assuming column are from same table

 

if([DeviationEscalationDate] >= [mfg_ww_begin_datetime] && [DeviationEscalationDate] < = [mfg_ww_end_datetime] , [MFG_YEAR] & "-" & [mfgworkweek] , blank())

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

9 REPLIES 9
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Can you provide a simple PBIX file for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks It has been done.

 

Anonymous
Not applicable

@amitchandak can you please tell I am not getting all the values I want al the values so I want that if  its in between those values so it should show me values Please tell what should I use si that it should work like in between in tableau.

 

amitchandak
Super User
Super User

@Anonymous , Need more information

you can have a measure 

 

calculate([measure], filter(Table, Table[Value] >=1 && Table[Value] <=2 ))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

 if DeviationEscalationDate  is between ww.[mfg_ww_begin_datetime] and ww.[mfg_ww_end_datetime] then  show MFG_YEAR+mfgworkweek 

Please write this in formula and let me know if it can be done or not.

 

@Anonymous a new column, assuming column are from same table

 

if([DeviationEscalationDate] >= [mfg_ww_begin_datetime] && [DeviationEscalationDate] < = [mfg_ww_end_datetime] , [MFG_YEAR] & "-" & [mfgworkweek] , blank())

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

@amitchandak this willl include all the values that will be in between these two as I am getting only 1 or 2 values.

Anonymous
Not applicable

@amitchandak where we will write this condiiton in measure? or where ?

 

Anonymous
Not applicable

@amitchandak I also have two tables from different servers so how to take value from specific table.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.