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
Good morning
I ask for their help to solve my problem. I have the following table:
I want to calculate how many Documents have "Qty" less than 12 units regardless of the "products". Yes, I use
Hi,
Assuming Qty is a measure you have written, write this measure
Measure = countrows(filter(values(Data[Documents]),[Qty]>12))
Hope this helps.
Thanks but it doesn't work
The solution I found for now was to group the columan in power query, with that I have the document number, the amount and the date that serves me for the measurements I need to create
please share the dummy data pbix file for easy reference.
Try this Measure
Documents with Qty < 12 =
CALCULATE (
DISTINCTCOUNT ( YourTable[Document_ID] ),
FILTER (
YourTable,
YourTable[Qty] < 12
)
)
If it helps Please Kudos to work and Accept it as Solution.
Thanks but it doesn't work because for the filter it takes the amount related to the product, I must first have a measure that gives me the total per document and then filter that measure
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |