Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
Beginner's question: I created in Excel a report of each resource's work on a day by day time scale.. I was told that it's possible the same report week by week in Power BI. I tried all day long without success.
How can I do that?
Thanks
Solved! Go to Solution.
Hi @GD61,
>>The syntax dor '.1' is not correct. (DAX(WEEKNUM([TimeByDay].1))).
The formula is WEEKNUM([TimeByDay],1), please use "," to spilt two parameters.
Regards,
Xiaoxin Sheng
Hi @GD61,
If you want to calculate value with week, you can add a calculate column which used to calculate the week number, then use dax to calculate the data based on week number.
Calculate column:
WeekNumber = WEEKNUM([Date created],1)
Measure:
Total = CALCULATE(SUM('Test Sample'[Amount]),FILTER(ALL('Test Sample'),'Test Sample'[WeekNumber]=MAX('Test Sample'[WeekNumber])))
Regards,
Xiaoxin Sheng
Thanks Sheng,
The WeekNumber is well calculated now.
For the Measure, could you explain what are:
'Test Sample'
[Amount]
Thanks a lot
Hi @GD61,
>>'Test Sample'[Amount]
It means the column which you want to calculated.
Regard,
Xiaoxin Sheng
Thanks Sheng,
I tried WeekNumber = WEEKNUM([TimeByDay],1) but I got the error:
La syntaxe pour '.1' est incorrecte. (DAX(WEEKNUM([TimeByDay].1))).
Translation:
The syntax dor '.1' is not correct. (DAX(WEEKNUM([TimeByDay].1))).
What did I miss?
Hi @GD61,
>>The syntax dor '.1' is not correct. (DAX(WEEKNUM([TimeByDay].1))).
The formula is WEEKNUM([TimeByDay],1), please use "," to spilt two parameters.
Regards,
Xiaoxin Sheng
Definitly, on my French version, the separator is the semi-colom ";"
Thanks a lot
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |