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 August 31st. Request your voucher.
here is a dax and I use it in the marix in value, but it is too slow to open in the visual, do you know how to improve the performance? Thank you.
one example of dependent measure:CMS_Amount_Actual_Y-4=CALCULATE(SUM(fact_sales[Value])
Cal_Overview =
SWITCH(TRUE,
------CMS Sales
SELECTEDVALUE(Dim_Table_KPI_Overview[Order])= 1 && SELECTEDVALUE(Dim_Table_Row_Overview[Order]) =1,
FORMAT([CMS_Amount_Actual_Y-4],"0.0"), --"General Number"
SELECTEDVALUE(Dim_Table_KPI_Overview[Order])= 2 && SELECTEDVALUE(Dim_Table_Row_Overview[Order]) =1,
FORMAT([CMS_Amount_Actual_Y-3],"0.0"),
..................
..................
Read about using variables - you only need to run SELECTEDVALUE once per column.
Familiarize yourself with DAX Studio. It is the ultimate tool for query tuning.
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
7 |