cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
markoss92 Regular Visitor
Regular Visitor

Help in DAX

Hi, I need help about a measure/calculated column:

 

IDCLIENTE MONTH NUM_TICKETS TICKETS_TOTAL                  SLICER OF MONTH

   1              JUNY             2                       6                                 JUNY   X

   1              JULY              4                       6                                 JULY    X

                                                                                                    AGOUST    -

 

 

I need to get tickets_total. it have to be responsive with the month slicer. If Agoust is not selected then it wont be included in tickets_total

 

Mant Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Help in DAX

Hi @markoss92

Create a Measure 

Measure = CALCULATE(SUM(Sheet9[number]),FILTER(ALLSELECTED(Sheet9),[client id]=MAX([client id])))

3.png

4.png

 

Best Regards

Maggie

 

View solution in original post

5 REPLIES 5
markoss92 Regular Visitor
Regular Visitor

Doubt in DAX

Hi, I need help about a measure/calculated column:

 

IDCLIENTE MONTH NUM_TICKETS TICKETS_TOTAL                  SLICER OF MONTH

   1              JUNY             2                       6                                 JUNY   X

   1              JULY              4                       6                                 JULY    X

                                                                                                    AGOUST    -

 

 

I need to get tickets_total. it have to be responsive with the month slicer. If Agoust is not selected then it wont be included in tickets_total

 

Mant Thanks

Super User
Super User

Re: Help in DAX

@markoss92 I believe you are looking to display the total tickets based on the slicer selection. If yes, then please create a new measure as SUM(NUM_TICKETS) then it will automatically display the total tickets based on the months selection in slicer.


Did I answer your question? Mark my post as a solution !

Proud to be a Datanaut !





AkhilAshok Established Member
Established Member

Re: Help in DAX

How about this:

Tickets Total =
CALCULATE ( SUM ( Table[Num_Tickets] ), ALLSELECTED ( Table[Month] ) )
markoss92 Regular Visitor
Regular Visitor

Re: Help in DAX

Hi @AkhilAshok. Thats a nice solution, but the problem is that the unselected months appear in my table. Example

 

CLIENTID    MONTH    NUM_TICKETS      TOTAL_TICKETS                   MONTH SLICER

   1               JUNY              -                                 9                              JUNY       X

   1               JULY                4                                9                              JULY        X

   1               AGOUST         5                                9                              AGOUST  -    

 

Thanks for your help     

   

Community Support Team
Community Support Team

Re: Help in DAX

Hi @markoss92

Create a Measure 

Measure = CALCULATE(SUM(Sheet9[number]),FILTER(ALLSELECTED(Sheet9),[client id]=MAX([client id])))

3.png

4.png

 

Best Regards

Maggie

 

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 219 members 2,490 guests
Please welcome our newest community members: