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
Hello, I'm trying to figure out how to perform these Excel formulas in DAX, I'm thinking it's either using COUNTX or COUNTAX and then getting the percent in a visual. Any help would be appreciated.
Here is a sample data set
| A | B | C | D | E |
| 2 | SAMPLE DATA- ticket dataset | |||
| 3 | Date | Ticket# | Process Type | Other columns |
| 4 | 1/2/2023 | 100021 | passed | Other details |
| 5 | 1/3/2023 | 100022 | bypassed | Other details |
| 6 | 1/4/2023 | 100023 | bypassed | Other details |
| 7 | 1/5/2023 | 100024 | bypassed | Other details |
| 8 | 1/6/2023 | 100025 | bypassed | Other details |
| 9 | 1/7/2023 | 100026 | bypassed | Other details |
| 10 | 1/8/2023 | 100027 | passed | Other details |
| 11 | 1/9/2023 | 100028 | passed | Other details |
| 12 | 1/10/2023 | 100029 | passed | Other details |
| 13 | 2/1/2023 | 100030 | bypassed | Other details |
| 14 | 2/2/2023 | 100031 | bypassed | Other details |
| 15 | 2/3/2023 | 100032 | bypassed | Other details |
| 16 | 2/4/2023 | 100033 | bypassed | Other details |
| 17 | 2/5/2023 | 100034 | passed | Other details |
| 18 | 2/6/2023 | 100035 | passed | Other details |
| 19 | 2/7/2023 | 100036 | passed | Other details |
| 20 | 2/8/2023 | 100037 | bypassed | Other details |
| 21 | 2/9/2023 | 100038 | bypassed | Other details |
| 22 | 2/10/2023 | 100039 | bypassed | Other details |
| 23 | 2/11/2023 | 100040 | bypassed | Other details |
Here are the excel formulas with results
Solved! Go to Solution.
Hi @tb0493
You can use the following:
1. Count all records = COUNTROWS ( 'TableName' )
2. Count if records "bypassed" =
CALCULATE (
[Count all records] ,
FILTER ( 'TableName' , TableName[Processed Type] = "bypassed" ) )
3. Divide = DIVIDE ( [Count if records "bypassed"] , [Count all records] , 0 )
Attached is a PBIX File to assist.
Hope this helps 🙂
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Thanks! I will give these a try. 🙂
Hi @tb0493
You can use the following:
1. Count all records = COUNTROWS ( 'TableName' )
2. Count if records "bypassed" =
CALCULATE (
[Count all records] ,
FILTER ( 'TableName' , TableName[Processed Type] = "bypassed" ) )
3. Divide = DIVIDE ( [Count if records "bypassed"] , [Count all records] , 0 )
Attached is a PBIX File to assist.
Hope this helps 🙂
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Try this:
Proud to be a Super User!
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 |