Hi everybody,
First of all, the forum is an amazing source of ideas/information, thank you all
I would like to build a report with data to be expressed upon slicers as below example:
Benchmark to show “vs Prior Year” or “vs Budget” value upon slicer selection.
I understand this is done through SELECTEDVALUE and SWITCH(TRUE formulas. I’m good with it.
Date Range to display the x-axis of the chart upon slicer selection
It seems that by default chart is displaying in x-axis year-to-date month columns (in this report up to month of June) and when slicing by another date range e.g. “Quarter-to-Date” chart only displays in x-axis months of related quarter and the value is express per month… (separately) and not escalated as April=April Budget then May=Sum of April+May Budget then June=Sum of April+May+Jun Budget as would do the QTD formulas…
How would model and/or slicer be built to display x-axis this way with columns shown as per slicer and values per month and not “to-Date” ?
I would appreciate your kind support.
Best regards
Alexandre
Welcome to the forum! It is a fantastic community, and we’re glad to have you here.
Take a look at the following two videos, which I think will help address your requirement. They take different approaches to the same basic question, so you can see which approach might be more applicable to your particular situation.
If these don’t solve your problem, please post your PBIX file and we can work through a specific solution based on your data and model.
I saw these videos previously but none of the videos I searched for was giving the example with date range as “attribute”… but but rethinking about it… what I did is build manually the date range table as follows… using “ShortMonth” as page/report filter, “DateRange” as slicer, “MonthRange” as axis column in chart and it works
… Actually did not solve everything because I end up with different granularities with existing tables
Date table with active one-to-many relationship with the below fact table between “Date” column from date table and “EOM” column from fact table:
What I want is to be able to filter the Date Range table by the ShortMonth and DateRange columns in order to show MonthRange column in a x-axis chart and lookup from fact table the MonthRange value
Whenever I run into granularity mismatch problems, my first thought is always using a combination of SUMMARIZE and TREATAS to resolve. Here are two videos that I think will be helpful:
If you need more specific support, please post your PBIX file as this scenario has gotten complex enough to make it difficult to work out specifically just through screenshots.