Forum Discussion
afaherty
Helper V
6 years agoDAX Formula Help - Should be easy!
Hello! I am fairly new to PowerBI and DAX as well. What I am trying to accomplish is a column to calculate the number of times the "MAIN" campus appears for Fall 2019 and Spring 2020 (from the "Ter...
- 6 years ago
Have you tried making a matrix visual with Term on the rows, Campus on the columns, and making a simple measure like Campus Count = COUNTROWS(Table)? Your post requested a column, but is that needed? Many people do more columns than necessary when they first start out, which is why I'm asking.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
Anonymous
6 years agoNot applicable
Try the COUNTX in a new Measure:
Measure = COUNTX(FILTER(Query1,[Campus]="MAIN"),[Term])
HTH,
Smitty
- afaherty6 years ago
Helper V
Anonymous Thanks! How would I nest the other 2 Campuses (OTHTU and OTHEX) within that?