Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply

ISSUE WITH DIVIDE -1

HI EVERYBODY

 

I HAVE A ISSUE, WHEN I USE A MEASURE THAT DIVIDE MONTH EXPENSE VS MONTH EXPENSE PREVIOUS YEAR & USE -1, THE VISUAL, HAVE A ISSUE THAT SHOW ME OTHERS YEARS THAT I HAVENT SELECTED IN THE SLICER DATE.

 

IN THE IMAGE, I CAN EXPLAIN BETTER, THE QUESTION IS HOW CAN I USE DE -1 AND DONT LOSS THE SLICER DATE.

 

REGARDS

 

 

Imagen1.png

1 ACCEPTED SOLUTION
Anand24
Super User
Super User

@CESARPULIDOGDL ,
The issue seems to be that some results are evaluating to -1 instead of blank.
Try the below measure:

#med gasto promedio AAvsYTD = 
IF (
([#med gasto mensual]/[#med gasto mensual promedio AA]) - 1 = -1,
BLANK(),
([#med gasto mensual]/[#med gasto mensual promedio AA]) - 1
)

 

View solution in original post

3 REPLIES 3
Anand24
Super User
Super User

@CESARPULIDOGDL ,
The issue seems to be that some results are evaluating to -1 instead of blank.
Try the below measure:

#med gasto promedio AAvsYTD = 
IF (
([#med gasto mensual]/[#med gasto mensual promedio AA]) - 1 = -1,
BLANK(),
([#med gasto mensual]/[#med gasto mensual promedio AA]) - 1
)

 

thanks it really works 😁

Thanks, let me try, i will return.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors