The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I want to show the result as shown above That is, when I select the slicer in any month, it will show the result from January to the month I select.
For example, if I select May, it will show the result from January to May
Thank you
Solved! Go to Solution.
@nmhung49 Yes it is possible. Though disconnected table is a very powerful feature. Since you want to use your calendar table. Follow the steps mentioned below.
1. First create a duplicate calendar table. You can use dax or power query to duplicate your calendar table. I named it 'Calendar2'.
2. Need to create a relationship between your original calendar table and duplicate calendar table with "Many to One" Relationship (Many side would be your calendar table and one side would be duplicate calendar table). Cross filter direction would be "Single" and make this relationship inactive.
Keep in mind that, you may face error during relationsip building, due to custom dax column index. I would suggest to change that formula from Index = Calendar[Date].MonthNo to Index = Month(Calendar[Date])
3. Go to your table visual, and remove "Index" column from rows format option and place index from "Duplicate calendar" Table. In this case "Calendar2".
4. Create a simple measure Sum of Value = SUM(Data[Value]).
5. Create the below final measure to show previous all month from first to till slicer selection.
Sum of Value Prev All Month =
Place the above measure in the table visual and remove any other measure or value column. You will get your desired result.
In this way, you can use your calendar table month in the slicer and able to slice data from first month to till your slicer selection.
If this solved your problem, Please accept it as a solution!!
I want to select value Month from Slicer Calendar[MonthName] of Calendar Table. How do it
Thank you
@nmhung49 Yes it is possible. Though disconnected table is a very powerful feature. Since you want to use your calendar table. Follow the steps mentioned below.
1. First create a duplicate calendar table. You can use dax or power query to duplicate your calendar table. I named it 'Calendar2'.
2. Need to create a relationship between your original calendar table and duplicate calendar table with "Many to One" Relationship (Many side would be your calendar table and one side would be duplicate calendar table). Cross filter direction would be "Single" and make this relationship inactive.
Keep in mind that, you may face error during relationsip building, due to custom dax column index. I would suggest to change that formula from Index = Calendar[Date].MonthNo to Index = Month(Calendar[Date])
3. Go to your table visual, and remove "Index" column from rows format option and place index from "Duplicate calendar" Table. In this case "Calendar2".
4. Create a simple measure Sum of Value = SUM(Data[Value]).
5. Create the below final measure to show previous all month from first to till slicer selection.
Sum of Value Prev All Month =
Place the above measure in the table visual and remove any other measure or value column. You will get your desired result.
In this way, you can use your calendar table month in the slicer and able to slice data from first month to till your slicer selection.
If this solved your problem, Please accept it as a solution!!
Hi @nmhung49 You can solve this problem using a disconnected table. Create a disconnected table of month. See image below:
Create measure :
Hope this helps!!
If your problem solved, please accept it as a solution!!
User | Count |
---|---|
56 | |
54 | |
54 | |
49 | |
30 |
User | Count |
---|---|
173 | |
89 | |
70 | |
46 | |
45 |