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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Passing run time parameters in power bi reports

Hi, 

I would like to ask one thing that is there any provision of passing runtime parameters in power reports ?
Like in the case of jaspersoft, we can pass runtime parameters, is there any optio nin power bi also ?

I am attaching the jasper query here for reference.
Hope to hear from you soon.
Thanks !

 

Query :

WHERE $X{IN, PRODUCTNAME, PRODUCT} AND CHALLENGEDTIMESTAMP BETWEEN LAST_DAY(ADD_MONTHS(TO_DATE($P{DATE_STR},'DD-MON-YYYY'),-13))+1

AND LAST_DAY(ADD_MONTHS(TO_DATE($P{DATE_STR},'DD-MON-YYYY'),-1))

AND $X{IN, INITCAP(CLIENTNAME), Client_Names}

AND

(SUBSTR(ORIGINATOREMAIL,INSTR((ORIGINATOREMAIL),'@',1)) like (select DISTINCT SUBSTR(ORIGINATOREMAIL,INSTR((ORIGINATOREMAIL),'@',1)) from CORE_DATACHALLENGE.MVIEW_PRICING_CHALLENGES

WHERE ENCRYPTED_EMAIL =  $P{CLIENT_EMAIL} )

OR encrypted_domain =$P{d})

GROUP BY TO_CHAR(CHALLENGEDTIMESTAMP,'YYYYMM'

1 REPLY 1
Icey
Community Support
Community Support

Hi @Anonymous ,

If I understood you corrcetly, VAR and RETURN are what you want. You can refer to these documents:

VAR: The best thing to happen to DAX since CALCULATE()

Variables in DAX

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors