Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

KPI showing different data

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.

1 ACCEPTED SOLUTION
FarhanAhmed1984
Resolver III
Resolver III

KPI is showing the latest value of "fecha" (date) in CREC YTD in KPI.

 

In order to verify it, either include Date in your table Visual or Export data from KPI visual. You will see the last date will have CREC value of 29.6%

View solution in original post

2 REPLIES 2
FarhanAhmed1984
Resolver III
Resolver III

KPI is showing the latest value of "fecha" (date) in CREC YTD in KPI.

 

In order to verify it, either include Date in your table Visual or Export data from KPI visual. You will see the last date will have CREC value of 29.6%

Anonymous
Not applicable

Many thanks @FarhanAhmed1984 for your reply!

 

That's correct, it was showing las value. What I did, is not to use the date as tendance but the year itself. That way I get what I needed.

 

Have a great day!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.