Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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 😀
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 15 | |
| 8 | |
| 8 | |
| 8 |