Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Bonjour,
Voilà j'ai un dataset constitué de données de visites renseignées par semaine, du coup j'ai une colonne semaine contenant sur chaque ligne Semaine(x) avec x le numéro de semaine, soit semaine 1, semaine 10, semaine 3 etc...
En réalité c'est pas du tout ordonnées, je voudrais donc faire un histigramme du nombre de visite en des semaines, mais dans le rendu les semaines ne se suivent pas.
je mets en pj la photo, je voudrais donc savoir comment faire pour réodonner, sur excel il suffit de déplcer mais je ne sais pas du tout comment faire sur power bi.
Merci d'avance pour votre aide.
Solved! Go to Solution.
(Apologies, I'm reverting to english for this explanation!)
Select "Modeling" in the ribbon -> new table and create a new dimension table for Semaine using:
Dim Semaine =
ADDCOLUMNS(
DISTINCT('Table'[Semaine ]),
"Ordre", INT(RIGHT([Semaine ], 2)))
Order the "ordre" field in ascending order. Select the dSemaine field and select "Sort column by" in the ribbon and select "Ordre":
Create a one-to-many single direction relationship between the corresponding fields from th dimension table to the fact table in the modeling view:
Now set up the visual using the dSemaine field from the dimension table and add the measure to get:
Proud to be a Super User!
Paul on Linkedin.
Il faut "clicker" sur les points de suspensions et choisir "Trier par" -> "Semaines"
Proud to be a Super User!
Paul on Linkedin.
Merci pour ton retour mais le filtre proposé par les points de suspensions le font juste par odre croissant ou décroissant vu que chaque semaine a sa cardinalité , ça permet pas d'organiser la liste de mes semaines normalement,
(Apologies, I'm reverting to english for this explanation!)
Select "Modeling" in the ribbon -> new table and create a new dimension table for Semaine using:
Dim Semaine =
ADDCOLUMNS(
DISTINCT('Table'[Semaine ]),
"Ordre", INT(RIGHT([Semaine ], 2)))
Order the "ordre" field in ascending order. Select the dSemaine field and select "Sort column by" in the ribbon and select "Ordre":
Create a one-to-many single direction relationship between the corresponding fields from th dimension table to the fact table in the modeling view:
Now set up the visual using the dSemaine field from the dimension table and add the measure to get:
Proud to be a Super User!
Paul on Linkedin.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
124 | |
114 | |
73 | |
65 | |
46 |