Forum Discussion

SandySharma's avatar
SandySharma
Resolver I
9 years ago
Solved

how to show default KPI value using DAX

HI Gurus,   I got stuck during the development of my dashboards in power BI. I am new to power BI , my query might be silly but I could not figureout how to do the same, that's why I am approaching...
  • SandySharma's avatar
    SandySharma
    9 years ago

    Hi MFelix,

     

    My Requirement was littel different. If no interaction is happening then it Card should show the value of North Asia, If any ineraction happened on Bar Chart then it should show the selected value result in card from Bar chart.

     

    After few hit and trail I am able to do the same by taking reference from DAX HASONEFILTER Function (DAX)

    My Logic :

    Measure 2 = IF(HASONEFILTER(Data[Geo]),ROUND( (SUM(Data[Market Growth])*100),1)&"%" &"("& FILTERS(Data[Geo])&")",
    CALCULATE(ROUND( (SUM(Data[Market Growth])*100),1) &"% (North Asia)",Data[Geo]="North Asia"))

     

     

    No interaction in above chart and able to show Default value of North Asia.

     

     

     

    interaction happen on bar chart and selected DVM in above chart and able to show DVM Value.

     

    Anyways thanks for your effort.