English 中文(简体)
权力比功能问题
原标题:Power Bi function issue
  • 时间:2024-02-12 19:46:26
  •  标签:
  • powerbi

是否有人请协助用一种公式,在一张给我的卡中摘取Top AOM? 我为“顶区”创建了一张卡,其公式似乎是行得通的。

Top Area =
  CALCULATE(
    SELECTEDVALUE( F E  Data [Area]),
    topn(2, all( F E  Data [Area]), [%Comp], DESC)
  )

当我试图用同一公式处理高级管理局时,该卡又是空白。 我使用了以下公式:

Top Area = 
  CALCULATE(
    SELECTEDVALUE( F E  Data [AOM]),
    topn(2, all( F E  Data [AOM]), [%Comp], DESC)
  )

我正试图用我的仪表板表示,在这一案例中,表现最出色的AOM(PHX)的表现,其基础是当天最高的成绩。

Picture enclosed below. Please let me know if you require any more detail and thank you all for your support! Power Bi example I have tried modifying the code different ways but am still unable to display the AOM i nthe card.

问题回答

Why the 2 in the TOPN ? Try:

Top AOM = 
  CALCULATE(
    MAX( F E  Data [AOM]),
    TOPN(1, all( F E  Data [AOM]), [%Comp], DESC)
  )




相关问题
Power BI Subtotal Measure

I need your help with some Power Bi code As you can see, in the Excel Worksheet i have 2 cells (yellow) that are mainly of subtotals and 2 columns (last 2) that depends of these subtotals, however ...

DAX expression for Power BI measure

I am trying to create a measure in POWER BI, its to calculate the total revenue for a time period but it has a lot of conditions to it. i.e. Total Revenue with following conditions Shipping type = &...

热门标签