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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

I lost information last month

Hi, guys, I will appreciate your help sices now.

I have 2 cards, the first one is base on the following filter:

 

me_trps_tv_abierta = CALCULATE(SUM(fact_registry[value_total]), FILTER(fact_registry, fact_registry[id_kpi] ==9))

 

and the second one it is the same, just for the last month:

 

me_trps_tv_abierta previous month = CALCULATE(SUM(fact_registry[value_total]), FILTER(fact_registry, fact_registry[id_kpi] ==9), PARALLELPERIOD(fact_registry[date_added], -1, MONTH))

The problem is that if I do a filter per month on the dashboard, I lose the information from the last month.
How can I solve this problem?

1 REPLY 1
sturlaws
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

try to write your measure like this:

Measure =
CALCULATE (
    CALCULATE ( SUM ( 'Table'[Val] ); FILTER ( 'Table'; 'Table'[id_kpi] == 1 ) );
    PARALLELPERIOD ( DimDate[Date]; -1; MONTH )
)

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too. 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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