Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a simple measure that is supposed to return the previous days number for a count of apps that meet a certain criteria. At first, I tried this dax expression:
Apps previous day = Calculate(
count(data[app Number]), Previousday(date DIM [Date]))
This expression does not return an error, but it also does not return any values. I was able to get the measure to work properly by using:
Solved! Go to Solution.
@LeeI , The PREVIOUSDAY function is a time intelligence function that works with a date column to return a table containing the previous day. However, it requires a proper date context to function correctly.
Try using ALL function to remove any existing filter on dim[date]
Apps previous day =
CALCULATE(
COUNT(data[app Number]),
PREVIOUSDAY(ALL('Date DIM'[Date]))
)
Proud to be a Super User! |
|
@LeeI , The PREVIOUSDAY function is a time intelligence function that works with a date column to return a table containing the previous day. However, it requires a proper date context to function correctly.
Try using ALL function to remove any existing filter on dim[date]
Apps previous day =
CALCULATE(
COUNT(data[app Number]),
PREVIOUSDAY(ALL('Date DIM'[Date]))
)
Proud to be a Super User! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |