Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. 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 |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |