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.
Hi i'm trying write a dax, drop down containing column list. So on selection of dropdown I can swith filter conditon from Col[A] to Col[B].
Measure:
test= calculate(distinctCount(Table1[ABC]),
filter(Table1,Table1[A] / Table1[B] <=max(table2[col])
&&
Table1[A] / Table1[B] >=min(table2[col])
)
So, If i select A from drop down then Table1[A] or If i select B from drop down then Table1[B].
Is there any way I can achieve this.
Filters( slicers, rows, columns) cannot be DAX funcitons, rather they must exists in tables in the data model. So this is a data modelling issue. Can you upload some sample data?
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |