Forum Discussion
Slicer modifying calculations
Hi Community,
I need a help… I newbie in Power BI and have de following case:
I have 2 slicers (Real, Comparative) filtering different calendars dimensions (dCalendar, dCalendarComp). The slicer Real, will be used to calculate a Measure (M1 = SUM(prod)) and the slicer Comparative, will be calculate another measure (M2 = SUM(prod)). Want to highlighted that M1 and M2 are calculated based on differents periods selecteds on slicer. Below it’s the model that I’m using.
In my table fact, I have a column named FLAG. In this column, just have the values 0 or 1. Based on these values, I need calculate a new column (named Index) following the condition: If the value of the FLAG = 1, then the value of the Index = 1, else I need divide M1 per M2 (M1/M2).
The problem is: When the slice is change the column doesn't recalculated to the new period. Can I create a dynamic column based on slicer? If can’t, have a workaround for this?
2 Replies
- amitchandak
Super User
Anonymous , I did not get it completely
Refer if this can help
- v-yuta-msft
Community Support
Anonymous ,
Could you please share some sample data and clarify more details about your requirement?
Regards,
Jimmy Tao