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, Iam new to Power BI DAX and have few issues which might be easy..Not sure to use measure or column please help
I have a dataset which has Month Column (ColumnA) and some values in different column (ColumnB)
1) I want to sum values in ColumnB related only to particular month and count no of rows in ColumnA and divide ColumnB sum by ColumnA rowcount.
Something like this should work:
Measure = VAR __sum = SUM([Column1]) VAR __count = COUNTX('Table2',[Month]) RETURN DIVIDE(__sum,__count,0)
See Page 4, Table2 of attached.
User | Count |
---|---|
69 | |
64 | |
62 | |
55 | |
28 |
User | Count |
---|---|
112 | |
80 | |
65 | |
48 | |
38 |