Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi, may i know what should I code if I wanted to know the ratio of the row item that 'PO date' is greater than 'Invoice Date'?
for example, the picture below show 2 row item out of 5 has PO date > Invoice Date. the ratio is 2/5 = 40%.
May I know how can I get this logic in Power BI.
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
Ratio measure: =
VAR POgreaterthanInvoice =
COUNTROWS ( FILTER ( Data, Data[PO Date] > Data[Invoice Date] ) )
VAR allcount =
COUNTROWS ( Data )
RETURN
DIVIDE ( POgreaterthanInvoice, allcount )
Hi,
Please check the below picture and the attached pbix file.
Ratio measure: =
VAR POgreaterthanInvoice =
COUNTROWS ( FILTER ( Data, Data[PO Date] > Data[Invoice Date] ) )
VAR allcount =
COUNTROWS ( Data )
RETURN
DIVIDE ( POgreaterthanInvoice, allcount )
It works !! thank you so much, it shows excatly what I am looking for ! Appreciate 😀
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |