Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Could someone help me with a dax calculation that counts uses the countrows functions based on field parameter selection menu.
based on the screenshot below it would need to do a row count based using a dynamic filter based on the menu selection and count the rows that all equal 1. the dax caculation would need to equal the values in the compliant and non-compliant boxes
Ok This is what I came up with for the compliance count based on the selection, but know there gotta be a better way. Does anyone know how to code this more efficently?
Hi,
Share the download link of the PBI file.
Hi Ashish
I was'n able to share a download link of the pbi file, but I did post screenshots of the datamodel of the pbix file.
I hope that helps.
Screenshots do not help.
@wdrain , Assume your measure is M1 used in visual , and your axis /row/group by is column1
compliant =
_var count = countrows(values(Table[Software]))
return
sumx( Values(Table[Column1]) , if( calculate(SUmx(Values([Software]),[M1])) =_var, 1, blank() ) )
Non compliant =
_var count = countrows(values(Table[Software]))
return
sumx( Values(Table[Column1]) , if( calculate(SUmx(Values([Software]),[M1])) =0, 1, blank() ) )
Hi Amitchandak
Thanks for the dax formula, but I don't think it applies to my datamodel or I am not sure on how to adjust to make it apply.
I don't have the permission to share my pbix file, but I can share screenshot of the sample data and the datamodel.
As mentioned earlier, I'm looking for a Compliant and Non Compliant count based the slicer selection
Compliant count should be when all software selection equal 1
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 |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 65 | |
| 39 | |
| 33 | |
| 23 |