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
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
Europe Fabric Conference

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.

Top Solution Authors