Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
Name | ID | Week | Sun | Mon | Tue | Wed | Thur | Fri | Sat |
Sonali | 1111 | 01/01/2024 - 01/07/2024 | 1 | 3 | 4 | 5 | 2 | 4 | 0 |
Sonali | 1111 | 01/08/2024 - 01/15/2024 | 9 | 3 | 2 | 5 | 1 | 2 | 6 |
the need is to get the weeks of an user which is not reported in the list as below
name | id | date | sun | mon | tue | wed | thur | fri | sat |
sonali | 1111 | 01/16/2024 - 01/23/2024 | |||||||
sonali | 1111 | 01/24/2024 - 01/31/2024 |
Solved! Go to 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")
2. Create a measure as below
Measure = CALCULATE(SUM('Data'[Value]),FILTER('Data','Data'[Week] =SELECTEDVALUE('Weeks'[weeks])))
3. Create visuals
Best Regards
Hi @sonalisaha2310 - create a calculated table as below
Hope it works
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
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")
2. Create a measure as below
Measure = CALCULATE(SUM('Data'[Value]),FILTER('Data','Data'[Week] =SELECTEDVALUE('Weeks'[weeks])))
3. Create visuals
Best Regards
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 |
---|---|
83 | |
75 | |
64 | |
39 | |
34 |
User | Count |
---|---|
107 | |
56 | |
52 | |
48 | |
40 |