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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

convert sql to DAX query

 I have two tables billing Status , billing rate and billing information(Rate and information table table have relation ship) but Billing status table dont have any relationship becacuse its hardcoded value in ssrs. I am looking for dax function to convert bellow query.

 

IF @B.@Status = '1
BEGIN
SET @Anonymous = @Anonymous + @CRLF + 'AND AR.EFFECTIVE_DATE <= GETDATE() AND AR.TERMINATION_DATE >= GETDATE() ' + @CRLF
SET @Anonymous = @Anonymous + @CRLF + 'AND AC.EFFECTIVE_DATE <= GETDATE() AND AC.TERMINATION_DATE >= GETDATE() ' + @CRLF
END
IF @Billing_Status = '2'
BEGIN
SET @Anonymous = @Anonymous + @CRLF + 'AND AR.TERMINATION_DATE < GETDATE() ' + @CRLF
--SET @Anonymous = @Anonymous + @CRLF + 'OR AC.TERMINATION_DATE < GETDATE()) ' + @CRLF
END

1 REPLY 1
Anonymous
Not applicable

@Narayana3635 ,

Could you please describe more about the above query? We would need to know what @CRLF,@SQL, AR, AC refer to in the above query.

You can follow the instructions in this blog to share sample data of your tables and post expected result here.

Regards,
Lydia

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.