Forum Discussion

diamond's avatar
diamond
Regular Visitor
8 years ago
Solved

SSRS to Power BI Report

 

I am converting a SSRS report to Power-BI. In my SSRS report, I have the following SQL fragment (where RunDate is a parameter) -

 

CASE
WHEN (CAST(DateOfService AS date) <= @RunDate) AND (CAST(BankDate AS date) > @RunDate OR ISNULL(BankDate, '') = '') THEN Charges
ELSE 0
END AS ARCharges,

 

I added the following custom column to replicate the above SSRS query fragment - 

#"Added Custom2" = Table.AddColumn(#"Added Custom", "ARCharges", each if Date.From([DateOfService]) <= [RunDate] and

Date.From([BankDate]) > [RunDate] or
[BankDate] = null
then [Charges] else 0),

 

However, I the following questions - if I want RunDate to be a parameter that can be typed-in by the end-user, how can I go about doing this Power-BI. Would the above work where RunDate is a query-parameter - would the user be able to type-in whatever value he/she needs OR do I need to use some other technique?

 

I am a newbie to PowerBI and I appreciate any and all help. Thank you.

3 Replies