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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Jozw126
Regular Visitor

Var to calculate month(today()), but got error said multiple columns cant convert to a scalar value.

Hi, I am trying to calculate a fiscal month using below Var
Monthtoday= if( month(today())>=7, month(today())-6, month(today())+6)
However, the expression refers to multiple columns.

Could someone please help me understand the issue?

Thank you.
2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Jozw126,

 

Have you solved your problem?

 

If you have solved, could you share the solution or accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, plesase feel free to ask.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Jozw126,

 

I have made a test with your formula with both calculated column and measure, everthing works as expected.

 

Capture.PNG

 

If it is convenient, I need more details about your data model, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.