The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I want to declare global variable in Power bi so that I can use them while creating new measure using DAX. Can it be possible to do .
eg
var Curdate= MAX(End of month Date)
Hi @Anonymous
Unfortunately, you can not declare a global variable.
If you need to calculate a value only once when the model is loaded then DAX table or column is probably the best option.
If you need dynamic calculation then Measure can be recycled in another measure, but it will always recalculate.
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |