Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi All,
I have a table that looks like this:
Month | Status | Number of people |
Apr-21 | Prospects | 80 |
Apr-21 | Warm Leads | 15 |
Apr-21 | Hot Leads | 10 |
May-21 | Prospects | 70 |
May-21 | Warm Leads | 15 |
May-21 | Hot Leads | 20 |
Jun-21 | Prospects | 100 |
Jun-21 | Warm Leads | 30 |
Jun-21 | Hot Leads | 8 |
I want to create 2 filters from the date field and populate a table below:
Apr-21 and Jun-21 should appear as dropdowns . Could anyone please help me with this?
@PaulDBrown @amitchandak @Ashish_Mathur @Greg_Deckler @parry2k @VahidDM @moizsherwani @Fowmy
Solved! Go to Solution.
Hello @Anonymous -
This might be a workaround.
1. Create 2 DimCalendar stand alone(without relationship to data table) date dimension table.
Table 1- MinCalendar =Calendarauto()
Table 2 - MaxCalendar= Calendarauto()
In both of these table create calculated column as-
MinSelection and MaxSelection respectively.
Please note there will be not any relationship between these three tables.
Use these MinSelection and MaxSelection columns as slicer dropdown.
Create calculated column in your datatable as:
Create 3 measures as:
MinValue =
Var _minSelected = SELECTEDVALUE(MinCalendar[Min Selection])
VAR _Result = CALCULATE(SUM(Data[Number of people]),FILTER(Data,Data[Column]=_minSelected))
Return
_Result
MaxValue =
Var _maxSelected = SELECTEDVALUE(MaxCalendar[Max Selection])
VAR _Result = CALCULATE(SUM(Data[Number of people]),FILTER(Data,Data[Column]=_maxSelected))
Return
_Result
%change = DIVIDE([MaxValue]-[MinValue],[MinValue],BLANK())
Change format of %change measure to percentage.
Please mark this post as solution if it fulfils your requirement. Kudos are also accepted.
Cheers!
Hello @Anonymous -
This might be a workaround.
1. Create 2 DimCalendar stand alone(without relationship to data table) date dimension table.
Table 1- MinCalendar =Calendarauto()
Table 2 - MaxCalendar= Calendarauto()
In both of these table create calculated column as-
MinSelection and MaxSelection respectively.
Please note there will be not any relationship between these three tables.
Use these MinSelection and MaxSelection columns as slicer dropdown.
Create calculated column in your datatable as:
Create 3 measures as:
MinValue =
Var _minSelected = SELECTEDVALUE(MinCalendar[Min Selection])
VAR _Result = CALCULATE(SUM(Data[Number of people]),FILTER(Data,Data[Column]=_minSelected))
Return
_Result
MaxValue =
Var _maxSelected = SELECTEDVALUE(MaxCalendar[Max Selection])
VAR _Result = CALCULATE(SUM(Data[Number of people]),FILTER(Data,Data[Column]=_maxSelected))
Return
_Result
%change = DIVIDE([MaxValue]-[MinValue],[MinValue],BLANK())
Change format of %change measure to percentage.
Please mark this post as solution if it fulfils your requirement. Kudos are also accepted.
Cheers!
@Anonymous is this what you are looking for?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |