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
Anonymous
Not applicable

Informes paginados- Declarar y usar variables en expresión

Hola

Tengo un escenario como la necesidad de declarar una variable (N) con el tipo Number y necesito escribir una expresión iif. Si es true, muestre N - N +1 de lo contrario N N en el generador de informes power bi.

A continuación, debe asignar esa expresión al nombre de la variable de nota.

Esa variable de nota debe usarse en otra expresión.

¿Puede alguien ayudarme a lograr esta solución en el generador de informes.

Gracias

Sudheer D

1 REPLY 1
negi007
Community Champion
Community Champion

@Dsudheer Puede crear una medida como la siguiente

Int_Measure de la casa de los
var int_var - INT(5)
Var note_var-IF(int_var-5,int_var+1,int_var)
devolución
note_var



Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.