Forum Discussion

Riyaz999's avatar
Riyaz999
Helper II
9 months ago
Solved

Different Matrix visuals on multiple reports using 1 FACT table arranged in key value pairs

I have data coming from SQL Server using a direct query to poplulate my FACT table (FWData).  I created a few Dimension tables in Power BI Desktop to support my reports. (see diagram below):  ...
  • v-hashadapu's avatar
    v-hashadapu
    9 months ago

    Hi Riyaz999 , Thank you for reaching out to the Microsoft Community Forum.

     

    The bar chart showed repeated stations because Power BI was pulling all records from the fact table instead of just the latest value for each station at noon. It wasn’t filtering down to a single record per station, so multiple entries appeared in the visual.

     

    We fixed this by adjusting the measure logic to dynamically filter the fact table for the latest date per station and for 12:00 PM, ensuring only one value per station appears in the bar chart. To support your dynamic metric selection, we also added a FWDMetricSlicer table that works with a SWITCH-based measure. This lets the chart update automatically based on whichever metric you pick in the slicer.

     

    Please see the attached .pbix file for your reference.