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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
A9kurs
Frequent Visitor

Compare two costs in Power Bi and show variance in KPI indicator going up or down

Hi Everyone

 

Please help me. I am trying to comapre two costs Purchase (latest date cost & Last month cost). So that i can show in KPI Indicator visualisation. Attached is sample data. I want that In Kpi indiactor i can show 02/01/23 (Latest Date) cost was 24,431,786 and compare it with previous date 24,115,505 Show variance  316,281 in red because it is increased.  Output i wnat o show in KPi indicator as i can show current cost( red or green) and variance. Thanks in advance appreciate help.

DateCompanyPURCH USDMFG USDReceipt
12/16/22Bell$23,748,613 $285,242
12/20/22Bell$23,917,023$2,402,861$89
12/22/22Bell$23,957,427$2,490,320$199,488
12/28/22Bell$23,919,250$2,606,153$685
12/29/22Bell$23,916,585$2,361,416$138,124
01/03/23Bell$24,084,139$2,671,463$54,778
01/06/23Bell$24,020,206$1,729,678 
01/09/23Bell$24,071,762$1,467,930 
01/17/23Bell$24,160,626$2,724,895 
01/24/23Bell$24,115,505$2,616,555 
02/01/23Bell$24,431,786$3,075,138 
01/26/23Bell   
01/27/23Bell   
01/30/23Bell   
12/16/22Dell$51,051,702 $366,610

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@A9kurs , You need measures like

 

This Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))
Last Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Last Day = CALCULATE(sum('Table'[Qty]), previousday('Date'[Date]))

 

 

Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.