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.
Hello,
We are trying to convert the following python code into DAX. The goal is to
Any help or assitance is greatly appreciated. Anything bolded is the column name in our dataset. Anything underlined denotes the table. The tables and columns would be indicated in DAX like: (e.g., 'table' and [column] would come from this: 'wa offense'[caseno]
hi i only know how to write dax within power pivot, but i think you would write something like this.
if it doesnt work the concept is correct, might just need to tweak the syntax to suit your environment.
evaluate
summarize(
addcolumns(table,"Year",format(table[date],"yyyy"),
[Year],
[caseno]
)
User | Count |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
14 | |
8 | |
5 |