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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
sonalisaha2310
Helper II
Helper II

Get the not reported weeks

Hello I have two files 
One file contains the list of all the weeks 

weeks
01/01/2024 - 01/07/2024
01/08/2024 - 01/15/2024
01/16/2024 - 01/23/2024
01/24/2024 - 01/31/2024

 

 

and the another file contain the time entried 

NameIDWeekSunMonTueWedThurFriSat
Sonali111101/01/2024 - 01/07/20241345240
Sonali111101/08/2024 - 01/15/2024932512

6

 

the need is to get the weeks of an user which is not reported in the list as below

nameiddatesunmontuewedthurfrisat
sonali111101/16/2024 - 01/23/2024       
sonali111101/24/2024 - 01/31/2024       
1 ACCEPTED SOLUTION

@rajendraongole1 Thanks for your contribution on this thread.

Hi @sonalisaha2310 ,

I created a sample pbix file(see the attachment), please check if that is what you want.

1. Unpivot these weekday columns in Power Query Editor

= Table.Unpivot(#"Changed Type", {"Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"}, "Weekday", "Value")

vyiruanmsft_0-1722585861707.png

2. Create a measure as below

Measure = CALCULATE(SUM('Data'[Value]),FILTER('Data','Data'[Week] =SELECTEDVALUE('Weeks'[weeks])))

3. Create visuals

vyiruanmsft_1-1722585933476.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
rajendraongole1
Super User
Super User

Hi @sonalisaha2310 - create a calculated table as below 

FilteredMissingWeeks =
EXCEPT (
    MissingWeeks,
    SELECTCOLUMNS (
        'Time Entry',
        "Name", 'Time Entry'[Name],
        "ID", 'Time Entry'[ID],
        "Week", 'Time Entry'[Week],
        "Sun", 'Time Entry'[Sun],
        "Mon", 'Time Entry'[Mon],
        "Tue", 'Time Entry'[Tue],
        "Wed", 'Time Entry'[Wed],
        "Thu", 'Time entry'[Thur],
        "Fri", 'Time Entry'[Fri],
        "Sat", 'Time Entry'[Sat]
    )
)

 

rajendraongole1_0-1722518001998.png

 

rajendraongole1_1-1722518221901.png

 

 

Hope it works

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hello @rajendraongole1 , i am getting an error as 
except doesn't support joining acolumn of type text with another column of type number

@rajendraongole1 Thanks for your contribution on this thread.

Hi @sonalisaha2310 ,

I created a sample pbix file(see the attachment), please check if that is what you want.

1. Unpivot these weekday columns in Power Query Editor

= Table.Unpivot(#"Changed Type", {"Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"}, "Weekday", "Value")

vyiruanmsft_0-1722585861707.png

2. Create a measure as below

Measure = CALCULATE(SUM('Data'[Value]),FILTER('Data','Data'[Week] =SELECTEDVALUE('Weeks'[weeks])))

3. Create visuals

vyiruanmsft_1-1722585933476.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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