Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello,
I'm using this formula.
ROE = CALCULATE(SUM([Monto]),'Terminos Financieros'[TF_id]=17,DATESINPERIOD(Tiempo[Fecha],LASTDATE(Tiempo[Fecha_fin]),-12,MONTH)) / IF(HASONEVALUE(Tiempo[Year]),((CALCULATE([SumMontos],'Terminos Financieros'[TF_id]=7)+CALCULATE([SumMontos],'Terminos Financieros'[TF_id]=7,SAMEPERIODLASTYEAR(Tiempo[Fecha])))/2),BLANK())
And I have a date slicer.
I'm using a "Card" Visual to display the value. When I select only one date the value shows without problem. When I select more than one date the value goes to "Infinity". I know this probably is intended but is there a way to avoid getting that value.?
BTW this formula works normally using a different visual, I'm only having problemas with the "Card" visual.
Example:
@pvaldiviag Infinity show up when you divide by blank
instead of / => Try using the DIVIDE funcion like this => DIVIDE ( [numerator], [denominator], 0)
This should take care of it - if otherwise the formula works fine!
Hey,
Thanks for the quick answer.
The solution you provided works partially. It now shows a BLANK value.
I'm trying to show the same value as the image I provided.
I hope there's a solution for this 😞
Greetings,
@pvaldiviag to get rid of a Blank in the Card - you have to surround it with IF ( ISBLANK (...
=> IF ( ISBLANK(expression), 0, expression)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 52 | |
| 42 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 123 | |
| 104 | |
| 44 | |
| 32 | |
| 24 |