Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
lm82
New Member

count number of rows of each status per month

lm82_0-1701161715158.png

how do I build a visualisation for above? I need to display total of each status per month e.g. in Jan there are three approved, 2 lost and 2 won. out of total 7 orders. The visualisation needs to show the stats for each month jan-dec and multi year data. 

6 REPLIES 6
danextian
Super User
Super User

Hi @lm82 ,

 

The formula below can be either a measure or a calculated column and  computes the row count by month and status.

=
CALCULATE (
    COUNTROWS ( 'table' ),
    ALLEXCEPT ( 'table', 'table'[month], 'table'[status] )
)




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

thank you for your response. I am quite new to this so will need little extra help. I have two tables. Date table, which has year, months etc. And another table named orders. In the order table I have record or orders placed over a period of months and years. I would like to build a visulazation similar to below that can show me each month the total status of each order

lm82_0-1701163986012.png

 

Please see below:

danextian_0-1701165776786.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

I am getting single count 

lm82_0-1701166565025.png

 

swikritee_p
Resolver II
Resolver II

@lm82 , Take Date(Month/Year) or Date on the X-axis and Status as Legend and Count of y-Axis/Values on Clustered column or stacked bar visual 

I am not sure how to do count of y-axis/values. I have tried previous user measure but getting same total for every status. where as I am trying achive something similar to below where every color is the total of number of orders in a given status in that month.

lm82_1-1701165101053.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors