Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have this formula, that someone here posted it in another thread,
The below DAX formula defaults sales for current month and when other visual month is selected, it shows the correct sales for the selected month; this measure is showing in a card visual;
by default it shows the correct margin for the current month (Card visual), when selecting current month, it shows number correctly as well but when selecting other month, the number shows a zero or blank.
How can I make this work so it calculates margins for the rest of the selected months?
Thanks in advance for your help!
Solved! Go to Solution.
Hi @Midway
If both cost and sales are coming from the same table, then you need to remove the filter from the month slicer and any other column that is used as a sort by or a group by column. Even safer to remove tye filter from the date table completely.
Hi @Midway
If both cost and sales are coming from the same table, then you need to remove the filter from the month slicer and any other column that is used as a sort by or a group by column. Even safer to remove tye filter from the date table completely.