Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
SivanVigder
Contributor
Contributor

Question to solve duplicate medical codes problem

I have a database of medical codes that I need to check when certain codes were applied twice per patient, or twice per appointment, where they were only supposed to be once per app.

I want to add charts and tables to a dashboard to show that, but I want to do it on the frontend .

I am looking for help with the formula I can use for this kind of data structure 

To make it easy for all, I change it to products sold in countries and cities. but it is the same idea.

Please help ... 

 

Screen Shot 2020-02-25 at 12.49.34 PM.png

 

https://docs.google.com/spreadsheets/d/1V0gh_eYOA9wJvelIXKOA4JEJourj3fCESnbDNZs4tJ8/edit?usp=sharing

 

email me sivanvigder@gmail.com 

 

 

 

Labels (1)
4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Here is the qvf. Hope this is what you want.

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

Thank you so much 

is there a chance you wrote the formulas 

I am using qlik sense remotely and don’t know how to load qvf files there .

i simply create dashboard and use formulas in the front end . 

thabks again, and I hope you can help 

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Try this expression in your Table and Bar chart

COUNT({<Product = {$(=CONCAT(DISTINCT Product,',',Product))}>}[Transaction#])

 

Let us know if it helps.

Lisa_P
Employee
Employee

I think this is the right solution:
Use this as the measure ..Sum(AGGR(If(Count({<Product={A}>}Product)>1,Count(Distinct City)), City))

314d1dcc7f0c4b0c964ddffbda92ea07.png