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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mohammedkhan
Helper I
Helper I

how to filter out Blanks and Infinity

I want to show the Min and Max Pop Growth, in both cases i am either getting Infinity (because i didnt use the blank function) or getting blanks 

 

Can i filter out the Inifinities and blanks from the visualization or perhaps from the DAX.

 

Capture.JPG

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @mohammedkhan ,

 

1.You can going to the Visual level filters and setting Pop LY/Pop Growth/Pop Growth1 is not blank.  the specific row will be filtered out then.

11.png

 

2.Right click the Blank/infinity cell in the report, select the Exclude. The result will be filtered same as above.

212.png

 

3.Infinity appeared when you using “/”, you can use Divide function instead: DIVIDE(numerator,denominator,0), the infinity value will be replaced by”0” as below (I scratched the data with only 3 rows related just for ease)

14.png

4.If you’d like to suppress the blank in column Pop LY, you can add another measure to replace it, (Blank has been changed to “0”), and then use Divide function to generate the Pop Growth. (using “0” straightway as above is also optional)

 

Measure = IF(SUM(Table1[Pop LY])=BLANK(),0,SUM(Table1[Pop LY]))
Measure 2 = var a = DIVIDE([Diff Pop],[Measure])
return
IF(ISBLANK(a),0,a)

15.png

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @mohammedkhan ,

 

1.You can going to the Visual level filters and setting Pop LY/Pop Growth/Pop Growth1 is not blank.  the specific row will be filtered out then.

11.png

 

2.Right click the Blank/infinity cell in the report, select the Exclude. The result will be filtered same as above.

212.png

 

3.Infinity appeared when you using “/”, you can use Divide function instead: DIVIDE(numerator,denominator,0), the infinity value will be replaced by”0” as below (I scratched the data with only 3 rows related just for ease)

14.png

4.If you’d like to suppress the blank in column Pop LY, you can add another measure to replace it, (Blank has been changed to “0”), and then use Divide function to generate the Pop Growth. (using “0” straightway as above is also optional)

 

Measure = IF(SUM(Table1[Pop LY])=BLANK(),0,SUM(Table1[Pop LY]))
Measure 2 = var a = DIVIDE([Diff Pop],[Measure])
return
IF(ISBLANK(a),0,a)

15.png

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

@mohammedkhan -

A few possibilities:

1. Make all of the measures return blank - then the row can be filtered out automatically. The Total Population measure would need to check whether there is previous year data and return blank if there is none.

2. Filter your results by some static time range.

3. Filter your results by a dynamic time range - add a Calculated Column to your table that specifies whether the data is the earliest year for that state.

Hope this helps,

Nathan

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors