Reply
jimmy69
Frequent Visitor
Partially syndicated - Outbound

La tabla que creo en power bi, el resultado total de usuarios respecto al % de usuarios calcula >100

TaulaEdats =
VAR TotalUsuarios =
    CALCULATE(
        DISTINCTCOUNT(Any2023[ID de usuario]),
        FILTER(
            Any2023,
            NOT(ISBLANK(Any2023[Edad del usuario]))
        )
    )
RETURN
    ADDCOLUMNS (
        SUMMARIZE (
            FILTER(
                Any2023,
                NOT(ISBLANK(Any2023[Edad del usuario]))
            ),
            Any2023[Edad del usuario],
            "Total usuaris", CALCULATE(
                DISTINCTCOUNT(Any2023[ID de usuario])
            )
        ),
        "% Total",
        DIVIDE (
            [Total usuaris],
            TotalUsuarios
        ) * 1
    )
 
Tabla creada:

Edad del usuario|| Total usuaris|| % Total
16326,41%
17408,02%
18214,21%
19183,61%
20122,40%
21122,40%
2281,60%
23204,01%
2471,40%
25122,40%
2681,60%
2771,40%
28132,61%
29132,61%
30316,21%
31122,40%
32102,00%
3371,40%
3461,20%
35102,00%
3681,60%
3740,80%
3891,80%
3991,80%
4091,80%
41102,00%
4291,80%
4381,60%
44132,61%
45142,81%
46183,61%
47142,81%
4871,40%
49173,41%
5091,80%
5171,40%
5251,00%
5371,40%
5451,00%
5551,00%
5661,20%
5730,60%
5830,60%
5910,20%
6040,80%
6120,40%
6230,60%
6310,20%
6510,20%
6610,20%

 

 

 

511102%

 

El total usuarios es correcto, pero el calcul de la proporcion, lo hace sobre 499 usuarios.

 

Alguna idea.

 

Gracias

 

2 ACCEPTED SOLUTIONS

Syndicated - Outbound

Hi,

I transform yours calculated column in explicit measures and now it's working properly.
See the result and measures:

_AAndrade_0-1709117114468.png

_AAndrade_1-1709117200162.png

I hope this help you and solve the problem.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

jimmy69
Frequent Visitor

Syndicated - Outbound

Very good !!

 

Thanks ...

View solution in original post

6 REPLIES 6
jimmy69
Frequent Visitor

Syndicated - Outbound

Very good !!

 

Thanks ...

_AAndrade
Super User
Super User

Syndicated - Outbound

Hi,

On the part bellow try to replace the DISTINCTCOUNT(Any2023[ID de usuario]) to [Total usuaris] and see if it solves your problem.

_AAndrade_0-1709109153232.png

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Syndicated - Outbound

No funciona, no acepta poner [Total Usuaris]

Syndicated - Outbound

Can you share a pbix file to try help you?





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Syndicated - Outbound

Como comparto el archivo?

 

Syndicated - Outbound

Hi,

I transform yours calculated column in explicit measures and now it's working properly.
See the result and measures:

_AAndrade_0-1709117114468.png

_AAndrade_1-1709117200162.png

I hope this help you and solve the problem.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)