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.
Hi,
E.g. of the metric working at sku level
E.g. of the metric aggregating in a non-meaningful way at the channel and store levels, while also not summing properly (e.g. 500+369 != 556)
Calculated Metric DAX
no_days_on_promo = COUNTX( SUMMARIZE( FILTER(v_agg_date_store_sku_comp_filtered, v_agg_date_store_sku_comp_filtered[promo] = 1), v_agg_date_store_sku_comp_filtered[sku_no], v_agg_date_store_sku_comp_filtered[trans_date], "promo_sku_date", DISTINCTCOUNT(v_agg_date_store_sku_comp_filtered[promo])), COUNT([promo_sku_date]))
Thanks so much
Solved! Go to Solution.
Hi,
Try this measure
=if(hasonevalue(v_agg_date_store_sku_comp_filtered[sku_no]),[no_days_on_promo],blank())
Hope this helps.
Hi,
Try this measure
=if(hasonevalue(v_agg_date_store_sku_comp_filtered[sku_no]),[no_days_on_promo],blank())
Hope this helps.
Hi Ashish
I am hoping you can help me. I have the opposite problem to what is above. How do I not display the returned value of a calcaluated measure at the detail level? I only want to show it at the higher level.
The reason for this is because it is duplicating the result at the detail level and reads misleading. The account manager is only going to receive $5000. Example below.
Thank you in advance
NG
You will have to IF(), HASONEVALUE() functions.
Thank you Ashish, your solution worked perfect!
You are welcome.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |