Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Dear Friends
i have table with thousands of rows as shown:
i need to count the number of "MR Number" wherer MR number contains only Status = "Initial", for example in above MR 1322398 & 1321621 have only status ="Initial", so that MR number Count=2
how can i do this by dax measure for all rows
Thanks
Solved! Go to Solution.
@Anonymous , Try a new measure like
countx(filter(summarize(Table, Table[MR Number], "_cnt", count(Table[MR Number]), "_init", countx(filter(Table, Table[Status] = "Initial"),Table[MR Number])), [_cnt] =[_init]),[MR Number])
@Anonymous
Measure =
CALCULATE (
COUNT ( tbl[Status] ),
FILTER ( VALUES ( tbl[Status] ), tbl[Status] = "INITIAL" )
)
a=Calculate(count([MR Number]),Filter(TableName,TableName[Status] = "Initial"))
HI @Anonymous ,
You can simply create a measure:
newCacl =
CALCULATE (
DISTINCTCOUNT ( yourTablname[MR Number] ),
yourTablname[Status] = "INITIAL"
)
In the above DAX just replace with your table name and column names.
Thanks,
Pragati
@Pragati11 in reponse to the previous
Hi @smpa01 ,
I think you updated you response from the initial one. This will definitely work.
Thanks,
Pragati
@Anonymous , Try a new measure like
countx(filter(summarize(Table, Table[MR Number], "_cnt", count(Table[MR Number]), "_init", countx(filter(Table, Table[Status] = "Initial"),Table[MR Number])), [_cnt] =[_init]),[MR Number])
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 42 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 33 | |
| 32 | |
| 32 |