Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
GD61
Helper III
Helper III

How to spread resource work on a timescale in Power BI

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. Smiley Sad

How can I do that?

Thanks

1 ACCEPTED 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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

6 REPLIES 6
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Definitly, on my French version, the separator is the semi-colom ";"

Thanks a lot

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.