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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Calculated Column

Hi All,

I have a below column in my data set "ROLLING_FISCAL_QUARTER" which i have modified to show the data like 0 will be Q0, -1 will be Q-1 and so on but I can see a blank value also present in my new calculation. Is there a way I can add the blank value to my last value shown i.e Q-5 +?

Himanshu_1306_0-1704714853314.png

Himanshu_1306_1-1704715495203.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Please update the formula of your calculated column as below and check if you can get the expected result...

BatchSort1 =
SWITCH (
    TRUE (),
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = BLANK (), "Q-5+",
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = 0, "Q0",
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = -1, "Q-1",
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = -2, "Q-2",
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = -3, "Q-3",
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = -4, "Q-4",
    "Q-5+"
)

vyiruanmsft_0-1704781565620.png

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I tried changing the formula but still its not working

Any help here?

 

Himanshu_1306_0-1704725581441.png

 

Anonymous
Not applicable

Hi @Anonymous ,

Please update the formula of your calculated column as below and check if you can get the expected result...

BatchSort1 =
SWITCH (
    TRUE (),
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = BLANK (), "Q-5+",
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = 0, "Q0",
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = -1, "Q-1",
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = -2, "Q-2",
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = -3, "Q-3",
    'VM_D_DATE'[ROLLING_FISCAL_QUARTER] = -4, "Q-4",
    "Q-5+"
)

vyiruanmsft_0-1704781565620.png

Best Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.