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

Show bottom/top value on KPI / Card

$
0
0

Hey!

 

Here's a quick sneak-peak on my current model:

 

 

79f32a8109

 

What I would like to show is a single value Card or KPI for:

1) Top Performing Prodcut Category

2) Worst Performing Product Category

 

Steps taken:
1) Calculate value POS_AMT_LW:

POS_AMT_LW = LOOKUPVALUE(POS[POS_AMT]; POS[END_DATE]; POS[END_DATE_LW]; POS[STORE_ID]; POS[STORE_ID]; POS[PRODUCT_ID]; POS[PRODUCT_ID])

2) Calculate POS_AMT_EXPECTED (we're assuming it's POS_AMT_LW * 1.05:

 

POS_AMT_EXPECTED = IF(POS[POS_AMT_LW] = 0; POS[POS_AMT]; POS[POS_AMT_LW] * 1,05)

3) Calculate POS_REALIZAITON:

 

POS_REALIZATION = IF(POS[POS_AMT_EXPECTED] = 0; 1; POS[POS_AMT] / POS[POS_AMT_EXPECTED])

Sneak-peak on final data:

 

1d71ebf45b

 

Next steps:

 

2572b0dd83

 

However value shown by visual is completely incorrect as it should be for different category..

 

Any idea how to achieve what I would like to achieve or what I'm doing wrong?

 

My second try was to achieve exactly the same thing but using Calculated table:

 

Aggregate = SUMMARIZE(POS; 'Product Hierarchy Lookup'[PRODUCT_CATEGORY_NAME]; POS[END_DATE]; "POS_AMT"; sum(POS[POS_AMT]); "POS_AMT_LW"; sum(POS[POS_AMT_LW]))

With later on calculating POS_REALIZAITON as:

 

POS_REALIZATION = IF('Aggregate'[POS_AMT_LW] = 0; 1; 'Aggregate'[POS_AMT] / ('Aggregate'[POS_AMT_LW]*1,05))

However I'm unable to filter data inside Aggregate table by Slicers or other visuals that are on the report..

 


Viewing all articles
Browse latest Browse all 216047

Trending Articles



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