Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
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.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 40 | |
| 30 | |
| 24 |