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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
JoanElGran1899
Frequent Visitor

How can I create a metric which changes a result to do predictions?

Hi Everyone,
I want to create a metric which change any result of column Y bigger than 0, and convert this result in 100% and column N to 0%.
This is to do predictions.
I show you an example:

JoanElGran1899_0-1630504639168.png

Does anyone have any idea of how to doing it?

 

Thank you very much for trying to help me!!

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @JoanElGran1899 ,

 

Please create measures:

N Measure = IF(MAX('Table'[Y])>0,0,MAX('Table'[N]))
Y Measure = IF(MAX('Table'[Y])>0||MAX('Table'[Y])=BLANK(),1) 

Eyelyn9_1-1630907666720.png

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

View solution in original post

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @JoanElGran1899 ,

 

Please create measures:

N Measure = IF(MAX('Table'[Y])>0,0,MAX('Table'[N]))
Y Measure = IF(MAX('Table'[Y])>0||MAX('Table'[Y])=BLANK(),1) 

Eyelyn9_1-1630907666720.png

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

PaulDBrown
Community Champion
Community Champion

Please follow the recommedations outlined in this thread to help us help you:

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

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.