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.
Dear All,
How to count the number of "aaa" from the previous period? For example, in period 2 the number of "aaa" is 3 and the thing to look for is the number of "aaa" in the previous period, namely period 1.
What is the DAX formula for this condition?
Thanks
Kode | Period |
aaa | 1 |
aaa | 1 |
aaa | 2 |
aaa | 2 |
aaa | 2 |
aaa | 3 |
Solved! Go to Solution.
Dear annonymous1999,
Thank you for your reply..and it's work.
hello use this measure
previous count =
CALCULATE(
[Count of Period] ,
'Table'[Period] = MAX('Table'[Period]) - 1)
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |