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
pfarahani
Helper II
Helper II

Using ISBLANK Function

Hello All,

 

I am creating a measure for the purpose of Quarter over Quarter change.

I have a syntax here that does work.

 

Expense QoQ change =
var prevquarter =
CALCULATE([Measure for Fact Expense],
DATEADD(FY_Accounting_Dates[Date],-4,QUARTER))
RETURN DIVIDE([Measure for Fact Expense]-prevquarter,prevquarter)

 

I am trying to add/integrate the ISBLANK to this syntax. The reason is, the Quarters that are in the future, it shows -100% for all those, since there is no value yet. Any help how I add add ISBLANK to this code to aviod this problem on the visual. Thanks!

1 REPLY 1
Anonymous
Not applicable

Hello @pfarahani ,
Try this one
Expense QoQ change =
var prevquarter =
CALCULATE([Measure for Fact Expense],
DATEADD(FY_Accounting_Dates[Date],-4,QUARTER))
var previousQuarter = DIVIDE([Measure for Fact Expense]-prevquarter,prevquarter)
RETURN 
IF ( ISBLANK ( PreviousQuarter ), 0, previousQuarter)

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.