Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
maximd
Frequent Visitor

Total of group with slicer

Hi all,

 

I would like to show a group count with working slicers.

 

The table contains a list of breakdowns

  • Unique ID (ID)
  • LiftID (Elevator) (The group to count)
  • ...
  • Field I need: The total of breakdowns for that LiftID (Elevator)

For each elevator, I should see the amount of breakdowns for THAT LiftID with the selected date-range filter applied.

Active slicer: Last 7 months

I know that slicers don't apply on calculated colums but how should I do this then?

 

I currently have a  second table with measure: (Aantal: 6) (Top - right)

 

Aantal = COUNT('F_DEPANNAGEANALYSE'[LiftID])

 

The third table: (Total: 33) (Bottom - right)

 

Total_Table = SUMMARIZE(KEEPFILTERS('F_DEPANNAGEANALYSE');'F_DEPANNAGEANALYSE'[LiftID];"Total";COUNT('F_DEPANNAGEANALYSE'[LiftID]);"Datum";COUNT('F_DEPANNAGEANALYSE'[CalDepOproepDate]))

 

 bforum.png

In this case, the Total should be 6 times 6 because the LiftID stayed the same.

Thanks in advance,
Maxim

1 ACCEPTED SOLUTION

@maximd ,

 

Create a calculate column.measure using dax below:

total/liftID =
CALCULATE ( COUNTROWS ( Table ), ALLEXCEPT ( Table, Table[liftname] ) )

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@maximd ,

 

Power bi doesn't support dynamic calculate column/table. If possible, could you share some sample(Please do not post the original data) and clarify more details about your requirement?

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuta-msft 

Here is some sample data:

 

IDinput dateexecuted dateliftIDliftnamereason
120/01/202031/01/20201Building-locationnamebutton not working
225/01/202028/01/20201Building-locationnamecable broken
320/01/202031/01/20201Building-locationnameother reason
425/01/202028/01/20202Appartment-location2some reason
525/01/202031/01/20202Appartment-location3nothing special
620/01/202028/01/20203House-locationnamepower down
720/01/202028/01/20203House-locationnamebulb broken
830/01/202031/01/20203House-locationnamedon't know
920/01/202028/01/20203House-locationnamenot fixed yet
1020/01/202031/01/20204Another-locationnamenew motor

 

Schema:

pbwisampledata.png

@maximd ,

 

Create a calculate column.measure using dax below:

total/liftID =
CALCULATE ( COUNTROWS ( Table ), ALLEXCEPT ( Table, Table[liftname] ) )

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.