The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello - I'm fairly new to using PBI and DAX. I'm hoping someone could assit with a pretty straight forward calculation I need. I have a column of ID's. I need to be able to count a specific ID based on date being >= 2024-05-01.
Solved! Go to Solution.
@KellyLo , You can get the desired result using a measure
CountSpecificID =
CALCULATE(
COUNTROWS(YourTable),
FILTER(
YourTable,
YourTable[ID] = "YourSpecificID" && YourTable[Date] >= DATE(2024, 5, 1)
)
)
Please replace table and column name with what you have in your report
Proud to be a Super User! |
|
THANK YOU!
@KellyLo , You can get the desired result using a measure
CountSpecificID =
CALCULATE(
COUNTROWS(YourTable),
FILTER(
YourTable,
YourTable[ID] = "YourSpecificID" && YourTable[Date] >= DATE(2024, 5, 1)
)
)
Please replace table and column name with what you have in your report
Proud to be a Super User! |
|
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |