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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Jeanxyz
Power Participant
Power Participant

var syntax

I am reading the DAX written by another colleague, i'm wondering what does "--" mean here. It seems to me hte last line of code (green highlights) are not executed. Maybe it's just notes of the developer?

 

Recorded Time M2 =

VAR cy = filter(Dim_Date,max(Dim_Date[Year])=Dim_Date[Year])

var result =

sum('Fact_Timesheets'[Recorded Time])

return

if(result = 0,blank(),result)

--CALCULATE(sum('Fact_Timesheet'[Recorded Time]),'Fact_Timesheet'[Time Category]<>"Valuation Result",cy)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jeanxyz .

 

Yes you are right, // and -- are used in a DAX statement to highlight as a note or a comment.

 

Regards,

Sanket Bhagwat.

 

If this post answers your question, then please mark it as 'Accept as Solution'.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Jeanxyz .

 

Yes you are right, // and -- are used in a DAX statement to highlight as a note or a comment.

 

Regards,

Sanket Bhagwat.

 

If this post answers your question, then please mark it as 'Accept as Solution'.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.