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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.