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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
theglamgamer
Regular Visitor

The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

I am trying to execute the following DAX but keep getting multiple columns can't be converted to scalar value:

 

Current Closing Period = IF('Fiscal Year Period Closing Date'[Closing Date Greater Than Today] = "Yes" && MINX('Fiscal Year Period Closing Date', 'Fiscal Year Period Closing Date'[Closing Date Greater Than Today] = "Yes"), FILTER('Fiscal Year Period Closing Date','Fiscal Year Period Closing Date'[Days to Closing] = ""))

 

Should I create a separate DAX formula for the second half then combine both? Sorry am new so not sure what to do. Thank you! 🙂

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @theglamgamer ,

Could you please clarify the expected result? From the formula you provided, FILTER function will return a table, seems you want to get a table if the conditions are met, so do you want to create a new table? Besides, the code in red box seems wrong, I guess what you expect is to determin weather the min [Closing Date Greater Than Today] is "Yes". If so, "Yes" should be outside of the bracket.

vyanjiangmsft_0-1692698078572.png

Look forward to your reply!

 

Best regards,

Community Support Team_yanjiang

amitchandak
Super User
Super User

@theglamgamer , Not very clear.

You can have measure like

 

Closing GT Today =
IF(MIN('Fiscal Year Period Closing Date'[Closing Date]) > TODAY(), "Yes", "No")

 

Then you can have a measure like

 

Current Close Period =
IF(
[Closing GT Today] = "Yes" &&
HASONEVALUE('Fiscal Year Period Closing Date'[Days to Closing]),
[Measure],
BLANK()
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors
Top Kudoed Authors