Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello, I'm looking for some advice - My goal is to be able to show or hide a message on my dashboard for report users regarding data during payroll processing and hide when this message is not valid.
I'm trying to create a measure that will give me a 1(True) if Today() (currentdate) is between a start and end date. Currently I have 2 fields - Payroll Processing Start and Payroll Processing End.
Example:
Today (3/2/23)
(From my table which 1 row for each pay period and columns for pay dates, processing start, processing end..etc.)
Payroll_Processing_Start 2/26/2023 Payroll_Processing_End 3/1/2023
I would expect my measure to return 0 (False)
I tried an IF statement:
Solved! Go to Solution.
@8047444 Try:
Measure =
VAR __End = MAX(Payroll_Calendar[PAYROLL_PROCESSING_START])
VAR __Start = MAX(Payroll_Calendar[CURRENTPAYROLLSTART])
VAR __Today = TODAY()
VAR __Result = IF( __Today >= __Start && __Today <= __End, 1, 0)
RETURN
__Result
@8047444 Try:
Measure =
VAR __End = MAX(Payroll_Calendar[PAYROLL_PROCESSING_START])
VAR __Start = MAX(Payroll_Calendar[CURRENTPAYROLLSTART])
VAR __Today = TODAY()
VAR __Result = IF( __Today >= __Start && __Today <= __End, 1, 0)
RETURN
__Result
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |