Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

stock availability ratio

Hi All,

I'm trying to report my stock availability. My data is consist of three fields; "Product Group" , "Part Number" and "Stock Quantity"

I've got 200 part numbers, 180 of them are in stock ([stock quantity]>0), 20 of them out of stock ([stock quantity]=0).

How can I make a presentation that says 90% available, 10% not available? And if I filter product groups I can see their availability ratios.

I've attached a sample data for your reference.

Thanks,

Mem



1 Solution

Accepted Solutions
Not applicable
Author

Hi,

The following expression should give you what you are looking for. I have wrapped it in a Num function in case you want to put the expression in a Text Object.

=Num(Count({$<[Stock Level]={">0"}>}[Stock Level])/Count([Stock Level]),'#,##0%')

I hope this helps.

Thanks

Nick

View solution in original post

2 Replies
Not applicable
Author

Hi,

The following expression should give you what you are looking for. I have wrapped it in a Num function in case you want to put the expression in a Text Object.

=Num(Count({$<[Stock Level]={">0"}>}[Stock Level])/Count([Stock Level]),'#,##0%')

I hope this helps.

Thanks

Nick

Not applicable
Author

Spot on! Works beautifully. Thanks Nick.