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

Select query in power BI

I need to select values from table in Power BI based on some conditions. When I create a new measure and use Evaluate it shows error. Could some one help me out. Here I need to get values in Calculated Column where ColumnName is some X. 

 

Forum1.png

@SpartaBI @truptis @Ashish_Mathur  

1 ACCEPTED SOLUTION

@Anonymous here is a link to a file with a solution example I made for this question:
Select query in power BI.pbix

View solution in original post

6 REPLIES 6
SpartaBI
Community Champion
Community Champion

@Anonymous you can't use EVALUATE in measures / calculated columns or in general inside Power BI. It's only for queries. Can you share what exactly you want to achieve and I'll share the code with you

Anonymous
Not applicable

I need the Values in Calculated column based on condition where  ColumnName value =HighVoltage_Calculated. So as to visualize as a line chart

@Anonymous still not sure I understand 🙂 Can you share a sample data and hard code there the result and write the logic behind it?

Anonymous
Not applicable

 

Thank you for responding 🙂 . This is the data sample. The field ColumnName has several other entries too. I need to plot the Calculated values against time with condition as ColumnName entries. 

@Anonymous will PM you now 🙂

@Anonymous here is a link to a file with a solution example I made for this question:
Select query in power BI.pbix

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.