Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
I have a survey table that I am trying to find the unique # of rooms where the Meet Criteria equals YES. I don't have access to the table so can't transform it. I think I need to either group by or count rows, but can't figure out how. Can someone help please? Thanks in advance!!!
Solved! Go to Solution.
Sorry, I totally screwed up the parens on that:
Table =
ADDCOLUMNS(
FILTER('Table',[Question] = "Room #")
"Meets Criteria",
MAXX(
FILTER(
'Table',
[Survey]=EARLIER([Survey]) &&
[Survey Response] = EARLIER([Survey Response])
),
[Response])
)
)
@Greg_Deckler Thank you so much for your quick response. The Room number/Match in the middle of my picture was just an illustration to show the data easily. My actual table that I am trying to write my dax off of is on the left.
Oh, you need to first add a column using EARLIER. See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395...
I probably create an entirely new table maybe, like:
Table =
ADDCOLUMNS(
FILTER('Table',[Question] = "Room #")
"Meets Criteria",MAXX(FILTER('Table',[Survey]=EARLIER([Survey] && [Survey Response] = EARLIER([Survey Response]),[Response])
)
@Greg_Deckler Thank you for this explaination!! I am newer to power bi and am not familiar with some of these functions. I did read your article, and tried the DAX you provided but am getting the attached error. Have tried looking up what the error may be but am still getting this error.
Sorry, I totally screwed up the parens on that:
Table =
ADDCOLUMNS(
FILTER('Table',[Question] = "Room #")
"Meets Criteria",
MAXX(
FILTER(
'Table',
[Survey]=EARLIER([Survey]) &&
[Survey Response] = EARLIER([Survey Response])
),
[Response])
)
)
Thank you. This worked!!!!! 🙂
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
16 | |
10 | |
8 | |
8 | |
7 |