Forum Discussion

Yonah's avatar
Yonah
Icon for Helper II rankHelper II
3 years ago
Solved

Creat Tabel with Value from Meassure

Hi,
I am trying to create a new table with Dax.
In this Table, I want the Value from Measures.

So the table should look like this:

5Value from Measuere 
'Export'[05 Total_Top_5]
10Value from Measuere 
'Export'[07 Total_Top_10]

My Dax so far is:

 

Tabelle =
{
( "5", NAMEOF ( 'Export'[05 Total_Top_5] ) ),
( "10", NAMEOF ( 'Export'[07 Total_Top_10] ) )
}

 


But if I creat a table with both Coolums the result is this:

ā€ƒ


 

The Result I want is 
53825
105650

 

The Dax for 'Export'[05 Total_Top_5] is:

 

05 Total_Top_5 =
IF (
ISINSCOPE ( 'Export'[Bezeichnung] )
&& [03 Ranking] > 5,
BLANK (),
SUMX ( VALUES ( 'Export'[Bezeichnung] ), [04 Sum_N1_TOP_5] )
)

 



The Dax for 'Export'[07 Total_Top_10] is:

 

07 Total_Top_10 =
IF (
ISINSCOPE ( 'Export'[Bezeichnung] )
&& [03 Ranking] > 10,
BLANK (),
SUMX ( VALUES ( 'Export'[Bezeichnung] ), [06 Sum_N1_TOP_5] )
)

 



You can finde the pbix-File here
https://1drv.ms/u/s!AoFqgLqZH-C0hMxg78Y7WqkhCHv0xg?e=gc2Vr8

Thanks

 

 

  • Use

    Tabelle = CALCULATETABLE(
        { ( "5", [05 Total_Top_5] ), ( "10", [07 Total_Top_10] ) },
        FILTER( KEEPFILTERS( VALUES( 'N1'[N1] ) ), 'N1'[N1] = 0 ),
        FILTER( KEEPFILTERS( VALUES( 'N2'[Parameter] ) ), 'N2'[Parameter] = 0 )
    )

6 Replies

  • Try

    Tabelle =
    {
    ( "5", [05 Total_Top_5]  ),
    ( "10", [07 Total_Top_10]  )
    }
    • Yonah's avatar
      Yonah
      Icon for Helper II rankHelper II

      Hi,
      if I try this DAX, I get empty colums.

      • johnt75's avatar
        johnt75
        Icon for Super User rankSuper User

        what do you get if you put the measures on card visuals with no filters applied ?

  • Use

    Tabelle = CALCULATETABLE(
        { ( "5", [05 Total_Top_5] ), ( "10", [07 Total_Top_10] ) },
        FILTER( KEEPFILTERS( VALUES( 'N1'[N1] ) ), 'N1'[N1] = 0 ),
        FILTER( KEEPFILTERS( VALUES( 'N2'[Parameter] ) ), 'N2'[Parameter] = 0 )
    )
  • ā€ƒI'm getubg tge Values that I expect. 

    ā€ƒ