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

Paginated reports - Declaring and using variables in expression

Hi,

 

I am having scenario like need to declare one variable (N) with Number type and need to write an iif expression. If its true, display N = N+1 otherwise N= N in power bi report builder.

Then need to assign that expression to Note Variable name.

That note variable need to use in another expression.

Can someone help me to achieve this solution in report builder.

 

Thanks,

Sudheer D

1 REPLY 1
negi007
Community Champion
Community Champion

@Anonymous  You can create a measure like below

 

Int_Measure =
var int_var = INT(5)
Var note_var=IF(int_var=5,int_var+1,int_var)
return
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
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.