This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I have this visualisation table. The purpose of this table is to show Purchasing Orders that were created after invoice date. I created a Key Measure subtracting Table1.[Document Date] and Table2.[Earliest Invoice Date] = [Difference].
Now I want to create a visualisation table that would tell me how many Purchasing Orders were created after invoice. For example 31Second Pty Ltd have 5 instances and Ergo Asia have 2 instances. How do I do this?
(All data are dummy inputs)
Thanks for the help.
JoeyHenry
Solved! Go to Solution.
Hi,
Create another visual with vendor names in the row labels. Write this measure
=COUNTROWS(FILTER(VALUES(Data[PO Number]),[Difference]>0))
If my solution does not work, then share the link from where i can download your PBI file.
hi, @JoeyHenry
You could use COUNTAX Function to add a measure for it.
Logic like this post, just use COUNTAX instead of SUMX.
Measure= COUNTAX(summarize table,[Difference])
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
If it is not your case, please share sample pbix file or some data sample and expected output. You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.
Best Regards,
Lin
hi, @JoeyHenry
You could use COUNTAX Function to add a measure for it.
Logic like this post, just use COUNTAX instead of SUMX.
Measure= COUNTAX(summarize table,[Difference])
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
If it is not your case, please share sample pbix file or some data sample and expected output. You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.
Best Regards,
Lin
Thank you lean.
I can use the formula also.
Cheers,
JH
Hi,
Create another visual with vendor names in the row labels. Write this measure
=COUNTROWS(FILTER(VALUES(Data[PO Number]),[Difference]>0))
If my solution does not work, then share the link from where i can download your PBI file.
Hi Ashish,
Thank you for this response. I can use this.
Cheers,
JH
You are welcome.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 31 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 31 | |
| 26 | |
| 23 |