Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I'm new to Power BI and I'm struggeling with my first visual/report.
I have a table 'Carts' like this:
| OrderId | Date |
| 0 | 8-11-2016 14:23:45 |
| 0 | 8-11-2016 14:23:45 |
| 1234 | 8-11-2016 14:23:45 |
| 5678 | 7-11-2016 14:23:45 |
| 0 | 7-11-2016 14:23:45 |
| 4521 | 7-11-2016 14:23:45 |
| 7896 | 7-11-2016 14:23:45 |
| 0 | 7-11-2016 14:23:45 |
Now I want a visual of the daily percentage with OrderId <> 0
8-11 33.33%
7-11 60.00%
How do I do this?
Solved! Go to Solution.
You can achieve this with COUNT functions. OrderID field data type must be Text for this solution to work
Create below 3 measures to achieve the desired results.
Step1:
TotalRows:= COUNTROWS(Table1) This will count all the rows in the table.
Step2:
Allrows Greater than Zero:=CALCULATE(COUNTA(Table1[OrderId]),Table1[OrderId]>"0")
Step 3:
Dailypercentage:=DIVIDE([Allrows Greater than Zero],[TotalRows],2)
You can achieve this with COUNT functions. OrderID field data type must be Text for this solution to work
Create below 3 measures to achieve the desired results.
Step1:
TotalRows:= COUNTROWS(Table1) This will count all the rows in the table.
Step2:
Allrows Greater than Zero:=CALCULATE(COUNTA(Table1[OrderId]),Table1[OrderId]>"0")
Step 3:
Dailypercentage:=DIVIDE([Allrows Greater than Zero],[TotalRows],2)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |