Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a rather simple measure that compares the percentage rise (fall) in current year net proit against the prior year:
2016-2015 Net Profit % Increase (Decrease) = FORMAT((GLSACCOUNT[2016 Net Income]-GLSACCOUNT[2015 Net Income]) / GLSACCOUNT[2015 Net Income], "Percent")
This works fine in the online Report properly showing the percent increase/decrease, but when I pin it to the Dashboard it shows "NaN" which, to my understanding, means, "not a number."
Any thoughts on why I am seeing this behavior?
Thanks.
Solved! Go to Solution.
Format function will convert number into text so that it will show "NaN" error. In this scenario, please format your calculated measure within Power BI Desktop Modeling. It will work properly when pinning onto dashboard.
Regards,
Also, consider using the DIVIDE function. this provides an automate trap for divide by zero problems.
this and the pre-listed formating should provide a nice result
Average= IF(ISERROR([CurentMonth]+[Avarage_Last_Month]+[Avarage_year_To_Date])=TRUE,0,[CurentMonth]+[Avarage_Last_Month]+[Avarage_year_To_Date])
Format function will convert number into text so that it will show "NaN" error. In this scenario, please format your calculated measure within Power BI Desktop Modeling. It will work properly when pinning onto dashboard.
Regards,
Thanks! In retrospect, this should have been obvious to me. It's all fixed now.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
31 | |
26 | |
26 | |
25 |
User | Count |
---|---|
61 | |
56 | |
33 | |
29 | |
27 |