Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 |
---|---|
54 | |
22 | |
19 | |
16 | |
11 |
User | Count |
---|---|
81 | |
55 | |
40 | |
20 | |
12 |