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.
Hi all,
I have data roughly in the below format. For each week, I want to get the count of IDs that were present in the previous week but are missing in the current week. In the example below, April 14th - 2 (IDs 2 and 4 are missing), April 21st - 1 (ID 5 is missing). I want to create a chart with this week over week numbers.
id | Week |
1 | 4/7/2023 |
2 | 4/7/2023 |
3 | 4/7/2023 |
4 | 4/7/2023 |
1 | 4/14/2023 |
3 | 4/14/2023 |
5 | 4/14/2023 |
6 | 4/14/2023 |
1 | 4/21/2023 |
3 | 4/21/2023 |
6 | 4/21/2023 |
Please let me know how I can go about it. Note that I have other columns in the table and may need to apply some filters in the formula like name = "xyz" while doing this calculation.
Thank you!
Solved! Go to Solution.
Missing =
VAR __wk = MAX( STAT[week] )
RETURN
TOCSV(
EXCEPT(
CALCULATETABLE( VALUES( STAT[id] ), STAT[week] = __wk - 7 ),
VALUES( STAT[id] )
),
,
,
FALSE()
)
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Hi,
You may download my PBI file from here.
Hope this helps.
You are welcome.
Missing =
VAR __wk = MAX( STAT[week] )
RETURN
TOCSV(
EXCEPT(
CALCULATETABLE( VALUES( STAT[id] ), STAT[week] = __wk - 7 ),
VALUES( STAT[id] )
),
,
,
FALSE()
)
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Thank you @ThxAlot ! I used COUNTROWS instead of TOCSV to get the count instead of the list. Appreciate your help!
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 |
---|---|
55 | |
54 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |