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.
Some days ago I start a query about Help Percentage with conditions in this link:
Now, I have a new issue derivated from the first query.
My data (into Excel) looks like this:
Titulo | Mes | Sector | Item | valor |
Libros | Enero | Sector 1 | Libro 1 | 30 |
Libros | Enero | Sector 1 | Libro 2 | 50 |
Libros | Enero | Sector 2 | Libro 3 | 20 |
Libros | Enero | Sector 1 | Libro 4 | 50 |
Libros | Enero | Sector 1 | Libro 5 | 40 |
Libros | Enero | Sector 1 | Libro 6 | 20 |
Video Juegos | Enero | Sector 1 | Video Juego 1 | 70 |
Video Juegos | Enero | Sector 1 | Video Juego 2 | 50 |
Video Juegos | Enero | Sector 2 | Video Juego 3 | 40 |
Musica | Enero | Sector 1 | CD1 | 15 |
Musica | Enero | Sector 2 | CD2 | 10 |
Musica | Enero | Sector 1 | CD3 | 20 |
Musica | Enero | Sector 2 | CD4 | 50 |
Libros | Febrero | Sector 1 | Libro 1 | 10 |
Libros | Febrero | Sector 2 | Libro 2 | 15 |
Libros | Febrero | Sector 1 | Libro 3 | 20 |
Libros | Febrero | Sector 2 | Libro 4 | 25 |
Libros | Febrero | Sector 1 | Libro 5 | 32 |
Libros | Febrero | Sector 2 | Libro 6 | 20 |
Video Juegos | Febrero | Sector 1 | Video Juego 1 | 70 |
Video Juegos | Febrero | Sector 1 | Video Juego 2 | 50 |
Video Juegos | Febrero | Sector 2 | Video Juego 3 | 40 |
Musica | Febrero | Sector 1 | CD1 | 15 |
Musica | Febrero | Sector 2 | CD2 | 10 |
Musica | Febrero | Sector 2 | CD3 | 20 |
Musica | Febrero | Sector 2 | CD4 | 50 |
And with this measure (named medida 1):
=DIVIDE ( SUM ( Tabla1[valor] ); CALCULATE( SUM ( Tabla1[valor] ); ALLSELECTED ( ); Tabla1[Titulo] = "Libros" ); 0 )
Try to calculate the percentage based on Libros title. I got this results (like picture):
The results that I want to get is at the right of Pivot Table, the "must be:" part. In blue is the result that I want with DAX formula, and Yellow is the description of the formulae used for calculate this percentages.
Any help must be apreciated. Blessings!
Solved! Go to Solution.
Okay I hope I get this right the first time
Medida 1 = DIVIDE ( SUM ( Tabla1[valor] ); CALCULATE ( SUM ( Tabla1[valor] ); Tabla1[Titulo] = "Libros"; ALLSELECTED ( Tabla1[Item] ) ); 0 )
Okay I hope I get this right the first time
Medida 1 = DIVIDE ( SUM ( Tabla1[valor] ); CALCULATE ( SUM ( Tabla1[valor] ); Tabla1[Titulo] = "Libros"; ALLSELECTED ( Tabla1[Item] ) ); 0 )
Yeah! Great! Really Thx for your help. This time all good! Blessings!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |