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 table that logs student offenses. It contains data such as Student ID, Date, Offense Type and Suspension Type. I'm trying to write a simple dax filter so I can plot the number of expulsions per year on a line chart. But I'm getting this error and don't understand why:
Can someone help me with this please?
Solved! Go to Solution.
Hi @Kimber
Use this DAX:
Expulsions Per Year =
CALCULATE(
COUNTROWS('Student Offenses'),
'Student Offenses'[Suspension Type] = "Expulsion"
)
Hi @Kimber
Use this DAX:
Expulsions Per Year =
CALCULATE(
COUNTROWS('Student Offenses'),
'Student Offenses'[Suspension Type] = "Expulsion"
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 58 | |
| 47 | |
| 40 | |
| 39 | |
| 22 |
| User | Count |
|---|---|
| 175 | |
| 138 | |
| 118 | |
| 80 | |
| 54 |