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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Userpath77
Helper II
Helper II

Modify Measure

Hello All

 

I have this measure and using it in a card, that card gets filtered and when no values present it says "blank." I need to modify the measure so that it returns a "0" if no values present. How should this be re-written?

 

CALCULATE(countrows(Elig_List),filter(Elig_List,Elig_List[Prom Elig Date]-TODAY()<=45))
 
Thanks for any help.
1 ACCEPTED SOLUTION
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Userpath77 ,

Just add 0 at the end of the measure and you are good to go!
CALCULATE(countrows(Elig_List),filter(Elig_List,Elig_List[Prom Elig Date]-TODAY()<=45))+ 0

 

 

Kudos are always appreciated!

View solution in original post

2 REPLIES 2
Userpath77
Helper II
Helper II

Thank you......worked perfect!

Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Userpath77 ,

Just add 0 at the end of the measure and you are good to go!
CALCULATE(countrows(Elig_List),filter(Elig_List,Elig_List[Prom Elig Date]-TODAY()<=45))+ 0

 

 

Kudos are always appreciated!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.