Forum Discussion

admin_xlsior's avatar
admin_xlsior
Icon for Post Prodigy rankPost Prodigy
7 years ago
Solved

Return field value from Virtual table (VAR) in measure

Hi,   If I'm using virtual table in my measure, what function to display it? So I have measure like this : MeasureType = VAR VirtualTable = CALCULATETABLE( ADDCOLUMNS(             FactInter...
  • AlB's avatar
    7 years ago

    Hi admin_xlsior 

    MeasureType =
    VAR VirtualTable =
        CALCULATETABLE (
            ADDCOLUMNS (
                FactInternetSales,
                "GroupType", IF ( [Value1] < 10, "Small", "Big" )
            ),
            ALLSELECTED ( DimDate[Date] )
        )
    RETURN
        CONCATENATEX ( VirtualTable, [GroupType], ", " )
    
       

    Please mark the question solved when done and consider giving kudos if posts are helpful.

    Cheers  Datanaut