DeepSeeWeb icon indicating copy to clipboard operation
DeepSeeWeb copied to clipboard

KPI: some filters do not show the values

Open evshvarov opened this issue 2 years ago • 2 comments

Example - here Zip Code filter doesn't show its members

evshvarov avatar Nov 17 '22 10:11 evshvarov

Second example

evshvarov avatar Nov 17 '22 10:11 evshvarov

Mdx2json returns an invalid result for the filter requests: Second example Request: /MDX2JSON/Filters?Namespace=IRISAPP Payload:

{"DataSource":"Holefoods/SalesAgainstTargets.kpi","Values":1,"Search":"","RequestedFilters":["ShowBy"]}

Invalid JSON result:

{
"children":[
	{null

gnibeda avatar Dec 09 '22 10:12 gnibeda

@eduard93, just in case you have time, can you please have a look?

evshvarov avatar Dec 13 '22 14:12 evshvarov

Here is the class that is responsible for the KPI where filters don't work: https://github.com/evshvarov/Samples-BI/blob/master/src/BI/Model/KPIs/DemoInteroperability.cls#L0-L1

evshvarov avatar Dec 14 '22 11:12 evshvarov

More info about KPI needed: 1 - Are there any standards to write KPI code? 2 - When users need to use KPI instead of pivot? Are there filters needed in the KPI data at all? 3 - What are the real scenarios to use KPI? To make workaround to add filters to this data

@evshvarov Could you help please or connect to the users who use KPI and face with filtering problem right now

Lena-Ev avatar Jan 11 '23 11:01 Lena-Ev

check call back from the case abovw with evgeny

Lena-Ev avatar Jan 18 '23 11:01 Lena-Ev

We need to make a custom solution to workaround response from https://github.com/evshvarov/Samples-BI/blob/a66a939af79f287aa0f7fc68fedb092651e90a80/src/BI/Model/KPIs/DemoInteroperability.cls#L48

jakcpto avatar Jan 18 '23 11:01 jakcpto

My recent hack fixed the appearance of filters. Filled in json in Holefoods/SalesAgainstTargets.kpi and drop down menu in DemoInteroperability.kpi

Postman_Js7UUQmOdD

The hack https://github.com/teccod/MDX2JSON/pull/5

Frisle avatar Jan 27 '23 03:01 Frisle

@gnibeda take a look why filters don't send requests for filter members? For example https://pie-chart-bug.demo.community.intersystems.com/dsw/index.html#/IRISAPP/KPIs%20&%20Plugins/MDX%20Based%20KPI.dashboard and https://pie-chart-bug.demo.community.intersystems.com/dsw/index.html#/IRISAPP/KPIs%20&%20Plugins/SQL%20Based%20KPI.dashboard

(MDX Based KPI and SQL Based KPI)

They are only loading icons while opening filter popup, nothing else.

image

jakcpto avatar Feb 01 '23 16:02 jakcpto

Done in 3.1.63

gnibeda avatar Feb 03 '23 13:02 gnibeda

fixed!

evshvarov avatar Feb 03 '23 14:02 evshvarov