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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello Everyone,
I have data that looks like this :
I would like to create a table that looks like this :
I tried to create a measure like this but I am not getting the correct numbers :
Solved! Go to Solution.
Hi @Khomotjo , hello bhanu_gautam, thank you for your prompt reply!
To resolve your issue, verify the following steps:
DateTable = CALENDAR(MIN('Order'[Finalised]), MAX('Order'[Date]))
Calculation Measure: Calculate the count of orders based on Finalised Date but make sure that for missing dates, you return a 0. Here's a possible DAX solution using a date table:
FinalisedCount = COALESCE(
CALCULATE(
COUNTROWS('Order'),
FILTER(
'Order',
TRUNC('Order'[Finalised]) = TRUNC(MAX(DateTable[Date]))
)
),0)
Result for your reference:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Khomotjo , hello bhanu_gautam, thank you for your prompt reply!
To resolve your issue, verify the following steps:
DateTable = CALENDAR(MIN('Order'[Finalised]), MAX('Order'[Date]))
Calculation Measure: Calculate the count of orders based on Finalised Date but make sure that for missing dates, you return a 0. Here's a possible DAX solution using a date table:
FinalisedCount = COALESCE(
CALCULATE(
COUNTROWS('Order'),
FILTER(
'Order',
TRUNC('Order'[Finalised]) = TRUNC(MAX(DateTable[Date]))
)
),0)
Result for your reference:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Here is a revised version of the measure:
Finalised =
CALCULATE(
COUNT(Orders[Reference]),
FILTER(
ALL(Orders),
Orders[Finalised] = Orders[Date]
)
)
This measure counts the number of orders where the Finalised date matches the Date for each row in the Orders table.
To create the summary table, you can use the following DAX code:
DAX
SummaryTable =
SUMMARIZE(
Orders,
Orders[Date],
"Finalised", [Finalised]
)
This will create a new table with the Date and the count of finalized orders for each date.
Proud to be a Super User! |
|
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 55 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 113 | |
| 105 | |
| 39 | |
| 35 | |
| 26 |