Forum Discussion

abc_777's avatar
abc_777
Solution Specialist
3 years ago

hi

hi

can some one help me for this title measure 

 

here TOPN is static but i want it dynamic

 

Total Sale with VAT (Measure) Dynamic Title Item_name =
CALCULATE(
    CONCATENATEX(
        VALUES('bm_retail_t product_file'[ITEM_NAME]),
         'bm_retail_t product_file'[ITEM_NAME],
   
    "Total Quantity in KG (Measure", " & "
) & " Highest with- "& FORMAT([Total Sale With VAT (Taka) (Measure)], "0.00"),
        TOPN(
            1,  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
            VALUES('bm_retail_t product_file'[ITEM_NAME]),
           [Total Sale With VAT (Taka) (Measure)]
       
))

9 Replies

  • Jayee's avatar
    Jayee
    Responsive Resident

    Hi abc_777 ,

     

    you can create a "New Perameter" in Modeling tab in report view and give the range you want like 1 to 10 it will create a table with column and measure use the measure insted of 1 give the column in slicer then based on user selection it will change.

     

    If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!

    • abc_777's avatar
      abc_777
      Solution Specialist

      I have tried so but its not givinig me the right result. 

      • abc_777's avatar
        abc_777
        Solution Specialist

        Hi,

         

        I have created a parameter name select numbers then in measure i have linked it

         

        Total in Piece and KG (Measure) Dynamic Title Value_Type =
        CALCULATE(
            CONCATENATEX(
                VALUES('bm_retail_t product_file'[VALUE_TYPE]),
                VALUES('Total in Piece and KG (Measure)'[Total in Piece and KG (Measure)  Retail] ) & " "& 'bm_retail_t product_file'[VALUE_TYPE],
           
            "Total Quantity in KG (Measure", " & "
        ) & " Highest with- "& FORMAT([Total in Piece and KG (Measure)], "0.00"),
                TOPN(
                    SELECTEDVALUE('Select Number'[Select Number]),  <<<<<<<<<<<<<<<<<<<<<<
                    VALUES('bm_retail_t product_file'[VALUE_TYPE]),
                    [Total in Piece and KG (Measure)]
                )
        )
         
        when select 1 its ok
         

         but when select number 2 its shows like this. its adding first  and second  then 17594068.69

        when select number 3 its shows like. its adding first, second and third then 21383488.54 

         

         but i dont want to add or sum.

         

        i want to see second value 5590993.92  and third value 3789419.85 when select number 2 and 3

         

        thanks

         

  • Jayee's avatar
    Jayee
    Responsive Resident

    You need to subtract my measure with your measure so will get expected result

     

    When you select TOP 3 your measure is giving 21383488.54 and my measure is giving 17594068.69

    • So 21383488.54 - 17594068.69 = 3789419.85 this is exactly what you are looking for right..!