Forum Discussion

Riyaz999's avatar
Riyaz999
Helper II
1 year ago
Solved

Using RELATED DAX function in FACT table from SQLServer

Hello there,   I have a FACT table that is sourced from a SQL Server Database (FireWeatherData).  I have related this table to a local table in Power BI (Metric).  I have tried using the RELATED DA...
  • Riyaz999's avatar
    Riyaz999
    11 months ago

    I was on the right track with:

    CALCULATETABLE(
        ADDCOLUMNS(
            'ReportMetric',
            "FieldName"LOOKUPVALUE('Field'[FieldName]'Field'[FieldId],'ReportMetric'[MetricId])
        ),
        FILTER(ReportMetric'ReportMetric'[ReportId] = [seletectedReportId])
    )
     
    Unfortunately, I was missing a relationship between my dax table and the Reports table.
    Works now.  Thanks for everyone's help.