Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216047

KPI showing different data

$
0
0

Hi!

 

Can somebody please help me with this?

 

I have some data that I want to show with a KPI and that is not working.

I have 3 measures to make this work. The measures are:

 

YTDUSD:

CALCULATE(
	DIVIDE(		
		SUM(
			'Ventas'[USD]
		);
		1000
	); 
	USERELATIONSHIP(
		'Ventas'[Fecha]; 
		'Fecha'[Fecha]
	)
)

 YTDUSDAA:

CALCULATE(
	DIVIDE(		
		SUM(
			'Ventas'[USD]
		);
		1000
	); 
	DATEADD(
		Fecha[Fecha];
		-1;
		YEAR
	); 
	USERELATIONSHIP(
		'Ventas'[Fecha]; 
		'Fecha'[Fecha]
	)
)

Crec.YTDUSD 2:

IF(
	AND(
		'Ventas'[YTDUSD] <> 0;
		'Ventas'[YTDUSDAA] <> 0
		);
	(
		('Ventas'[YTDUSD] / 'Ventas'[YTDUSDAA])
		-1
	);
	0
)

 

When showing this measures in a table visual, I see the expected values:

Sin título.png

But when using Crec. YTDUSD 2 in the KPI, the final value is complete different:

Sin título2.png

 

The KPI configuration is:

Sin título3.png

 

What can I be doing wrong?

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 216047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>