Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
hello, I have the following measure
here you go - i have a date slicer and i select a single date from it. based on the selection i am wanting to calculate the following measure. how many rows had a status & state of success and state respectively for
hope this helps
What is the reason to use ALLSELECTED? This function is used to get filters from outside the visual or get all the iterated entities from a visual. I have a strong feeling you're not using it correctly. And on top of that, this is the MOST complex function in all DAX and understanding it takes a bit of learning. Could you please explain better what you're trying to do? Maybe a picture would be useful...
thanks amitchandak, i tried the previousday function but it is still giving me the current day data. And yes the tables are linked through date.
btw, my goal is to for the last 7 days from the current date. so may need outside of previousday function even if it worked (sorry - i should have mentioned that in my original note)
@venkb , if date table is joined with the table then try like for previous day
Received_Today_1 = COUNTROWS(FILTER (
ALLSELECTED(Logs),
&& Logs[State] = "State"
&& Logs[Status] = "Success"
), previousday('Date Table'[Date]))
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
7 |