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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
bmoh
New Member

Assistance with DAX - Syntax and Compatibility errors

Hi There!


I'm trying to figure out how to link two columns from two tables compatible.

The current relationship in model view exists as follows:

bmoh_1-1728321434916.png

 

I have created two DAX expressions in both tables to restandardize the format. 


Standardized_Quarter =

VAR YearNum = RIGHT(LEFT(Dataset[Quarter], 4), 2)

VAR QuarterPart = MID(Dataset[Quarter], 6, 2)

RETURN "FY" & YearNum & QuarterPart

Standardized_Fiscal_year_quarter =

VAR YearNum = RIGHT(LEFT(time_dim[Fiscal Year], 4), 2)

RETURN "FY" & YearNum & " Q" & time_dim[Fiscal Quarter]


I'm getting a syntax error in the first expression and an incompatibility error in the second. I'm relatively new to building DAX in Power BI. If you are familiar with how to resolve this or could direct me to someone who could that would be greatly appreciated. 

Precisely, the 2nd error states: 
"A single value for column 'Fiscal Year' in table 'time_dim' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

Thank you in advance for your assistance!

1 ACCEPTED SOLUTION
bmoh
New Member

I figured out the problem. I created new measures within the table; whereas, the dax functions should have been written as new colum. The problem has been resolved now. Thank you

View solution in original post

3 REPLIES 3
bmoh
New Member

I figured out the problem. I created new measures within the table; whereas, the dax functions should have been written as new colum. The problem has been resolved now. Thank you

Anonymous
Not applicable

Hi, @bmoh 

I’m delighted to hear about your progress! It sounds like a very clever solution, and I appreciate that you’ve already shared most of it, which is incredibly helpful to us.

 

If possible, I would love for you to share the modified DAX as well. Additionally, please click the icon shown in the image below to mark your response as the accepted solution:

vlinyulumsft_0-1728524985832.png

This is vital for the growth of our community, as it will enable other members facing similar issues to find solutions more quickly.

 

Thank you in advance for your contributions. Wishing you a wonderful week ahead!

 
Of course, if you have any new ideas, you are welcome to contact us.
 

Best Regards,

Leroy Lu

Hi Leroy,

I used the exact same DAX as above just under "New Column" option rather than "New Measure". Thank you

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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