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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to get MAX/MIN ticket count by a Column in Matrix visualization?

Hi all,

I need to write a DAX for a measure that shows me 52 weeks high(max) and 52 weeks low(min) for ticket count by application.
I have attached screenshot for columns in the table and desired output.

Re-phrasing 
I am trying to get this in matrix visualization, where 52 week high and 52 week low would be the values. 
So, its for each application with maximum value of ticket counts in a week and minimum value of ticket count in a week. 


TABLE
Serv_Req_Number |  Create Date | Formatted Date | Application | WeekNum | Count | Year | Month

 

Serv_Req_Number => Ticket Number

 

Columns in the tableColumns in the table

desired outputdesired output

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

Assuming you have a date table somewhere in the model linked to the ticket table you could use the following combination of measures to generate a min/max week value over the last 52 weeks:

Sum Tickets = COUNT(Tickets[ticketnr])

Max Tickets Week =
MAXX (
SUMMARIZE (
FILTER ( Dates,
Dates[Date] >= TODAY()-365 && Dates[Date] <= TODAY()),
Dates[Year], 'Dates'[Week] ),
if ( ISBLANK([Sum Tickets]), 0 ,[Sum Tickets]) )

Min Tickets Week =
MINX (
SUMMARIZE (
FILTER ( Dates,
Dates[Date] >= TODAY()-365 && Dates[Date] <= TODAY()),
Dates[Year], 'Dates'[Week] ),
if ( ISBLANK([Sum Tickets]), 0 ,[Sum Tickets]) )

 hope this helps

 

Anonymous
Not applicable

@Anonymous Which column are you refering to get the week high and week low number. If I understood it clearly you want to get the max and min number per application per year

Please try a measure something like below

MaxValue = CALCULATE(MAX('Table'[Column]),ALLEXCEPT('Table',Table'[Application],Table'[Created Date].[Year]))

MinValue = CALCULATE(MIN('Table'[Column]),ALLEXCEPT('Table',Table'[Application],Table'[Created Date].[Year]))

If it helps accept solution.

 

 

Anonymous
Not applicable

Hi,

 

I am trying to get Ticket count by application to get 52 week high and 52 week low. 


SERV_REQ_NUMBER is Ticket Number. 

Thanks,

Mohit

Anonymous
Not applicable

I am trying to get this in matrix visualization, where 52 week high and 52 week low would be the values. 
So, its for each application with maximum value of ticket counts in a week and minimum value of ticket count in a week. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.