Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculation of vehicles types (or anything)

Hi all.

Please look at attached pic.

2013-03-12 10-15-30.jpg

I would like to know how to make this happen in QV.

Best regards

/Mats

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this in QV

     Create a chart with dimension as Month and expression as count(distinct Type)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

6 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this in QV

     Create a chart with dimension as Month and expression as count(distinct Type)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
fdelacal
Specialist
Specialist

IN CHART ADD DIMENSION

MONTH

AND EXPRESSION

COUNT(DISTINCT(TYPE))

hOPE IT HELPS YOU

Not applicable
Author

Hi again and thanks for the quick answer!

I have to ask again, this time with a third column to concider:

2013-03-12 10-57-06.jpg

Thanks in advance

/Mats

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Only include Env as dimension.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Hi

Ok, now im getting there!

I have now a formula that is: if(Env='ground',count (distinct (Type)))

This is working fine and with the real table i get 3 as the answer.

Now i want to calculate it in percent where i have 25 different Type.

I set it up like this:

NUM(100-(if(Env='ground',count (distinct (Type)))/25)*100,0)&'%'

but then i don't get it right. The answer should be 88%

2013-03-12 12-43-44.jpg

/Mats

Not applicable
Author

Hi again

I got it!

I had to present the number as Percent and then everything fell in place!

Best regards

/Mats