cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Matrix with several colulmans

Hello everyone

I have a problem that is simple, but I haven't been able to fix

I have the following measure

medida.PNG

What this measure does is count the first line according to the periodo_dias, the last day of the dashboard context. everything's fine here and gives the calculation I need.

tabla con cuenta total.PNG

The test gives when I add columns to the matrix, since the count a makes the inside of cda column, leaving incongruous the total sum

tabla con problema.PNG

COmo is expected to see, in the first row count 1 for business, 8 for support, given total 8, intuitively one says it is 9, but in reality it is 8 the value that is expected. When reviewing in detail the row with id 4885 is being counted in both columns, when reviewing the detail from which the lines are counted I see that it is effectively in the lists of rework and validation of retail, in this way counting the last date of both columns, but that when totalizing only the last of both.

What is needed is that you only count the last indistinct of whether you were in any of the previous stages (client, business or support). try a filter all to the extent, but I think I misused it.

I hope you can help me.

Best regards.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: Matrix with several colulmans

Dear:

I was able to solve the problem, I leave the solutions in case anyone needs it in the future.

In the original measure the last filter of the Calculate is the lastday of the table where I have the transactions. That date field is attached to the data model calendar.

So instead of filtering the date in the data table, it made any segmentation do the calculations within and each segmentation. To have the last day of the total I changed the lastday with the calendar date (this has no union with the attribute tables) so I did the calculation well.

medida_arreglada.PNG

tabla sin problema.PNG

Please consider it resolved!

Thank you, Greetings.

View solution in original post

2 REPLIES 2
Highlighted
Helper I
Helper I

Re: Matrix with several colulmans

Dear:

I was able to solve the problem, I leave the solutions in case anyone needs it in the future.

In the original measure the last filter of the Calculate is the lastday of the table where I have the transactions. That date field is attached to the data model calendar.

So instead of filtering the date in the data table, it made any segmentation do the calculations within and each segmentation. To have the last day of the total I changed the lastday with the calendar date (this has no union with the attribute tables) so I did the calculation well.

medida_arreglada.PNG

tabla sin problema.PNG

Please consider it resolved!

Thank you, Greetings.

View solution in original post

Highlighted
Super User IV
Super User IV

Re: Matrix with several colulmans

@Petazo , Thanks for sharing the solutions. Kudo's to you.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors