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.
I've a data for pay period (Bi weekly every Satuday) and the amount.
I would like to get the latest pay period in the Bar chart (with prior) on bi weekly basis (every Thursday)
For an example, let's say our next pay period is on 25/02/2023 (Saturday) but this data will come from payroll on Thursday 02/03/2023 and Thursday we have a pipeline which process the data and push it to SQL on 02/03/2023 and on the same day my report will refresh and I want to see all the pay period and amount on 02/03/2023.
Note that untill 02/03/2023 I don't want to see 25/02/2023 pay period data.
Solved! Go to Solution.
Hi, @Anonymous
You can try the following methods.
Date = CALENDAR(DATE(2023,1,1),DATE(2023,3,31))
Measure:
Next Thursday = CALCULATE(MAX('Date'[Date]),FILTER(ALL('Date'),[Weekday]=4&&[Weeknum]=MAX('Date'[Weeknum])+1))
Date Slicer = CALENDAR(DATE(2023,1,1),DATE(2023,3,31))
Measure =
IF ( SELECTEDVALUE ( 'Date Slicer'[Date] ) >= [Next Thursday]
&& SELECTEDVALUE ( 'Date Slicer'[Date] ) >= SELECTEDVALUE ( 'Table'[Pay Period] ),
1,
0
)
Result:
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
You can try the following methods.
Date = CALENDAR(DATE(2023,1,1),DATE(2023,3,31))
Measure:
Next Thursday = CALCULATE(MAX('Date'[Date]),FILTER(ALL('Date'),[Weekday]=4&&[Weeknum]=MAX('Date'[Weeknum])+1))
Date Slicer = CALENDAR(DATE(2023,1,1),DATE(2023,3,31))
Measure =
IF ( SELECTEDVALUE ( 'Date Slicer'[Date] ) >= [Next Thursday]
&& SELECTEDVALUE ( 'Date Slicer'[Date] ) >= SELECTEDVALUE ( 'Table'[Pay Period] ),
1,
0
)
Result:
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |