Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
FDO31
Regular Visitor

Ajout de Targets sur graphique en courbes et histogrammes empilés

Bonjour,

 

Je rencontre actuellement un problème avec l'ajout de "Targets" en courbes sur mon histogrammes empilés. En effet, Power BI Desktop cumule les données de la table "Targets" au lieu de les affichés tout simplement comme sur un graphique Excel.

Voici ce qu'affiche le graphique lors d'ajout de mes Targets en ligne :

FDO31_0-1634284544247.png

 

Voici les données que j'ai charger dans mon fichier Power BI :

FDO31_1-1634284591638.png

 

Le résultat souhaiter est d'avoir un graphique de ce style :

FDO31_2-1634284653035.png

 

Est-ce que je problème vient d'un réglage du Format ? De mes datas ?

Je vous remercie en avance pour vos réponses,

 

Best regards,

 

Fabien

1 ACCEPTED SOLUTION

Hi @FDO31 

I try to reproduce the behavior, 

vxiaotang_0-1634798309317.png

however, in my test, the value [Target 0%] didn't sum up in the visual, could you share a sample file? and we'll test it to find the reason. Thanks

 

Kindly note: you can remove unrelated data, or replace the raw data with bogus data to protect your sensitive information.

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-xiaotang
Community Support
Community Support

Hi @FDO31 

Thanks for reaching out to us.

You can create a measure and put it into the Analytics

vxiaotang_0-1634553744083.png

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-analytics-pane#use-the-analytics-p...

 

then, in your measure, you can use IF() function to control where the target line appears.

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

hi @v-xiaotang 

Merci pour votre réponse !

Cependant, sauriez-vous pourquoi Power BI fait une somme de mes données et ne prend pas tout simplement les valeurs 42 ?

Et si oui, pourriez-vous me donner une solution afin que mes données Targets ne soient plus une somme ?

Best regards,

 

Fabien

Hi @FDO31 

Thanks for your reply.

Do the summed values have the same abscissa value? If their abscissa values are the same, the column is automatically summed because its attribute is set to sum.

vxiaotang_0-1634638334645.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Merci pour votre réponse,

 

Malheureusement le problème est toujours présent, je ne comprend pas comment je peux régler cela. J'ai essayé avec tous les propositions de la liste mais rien ne change.

FDO31_0-1634729337480.png

J'ai également essayer de changer les paramètres des axes X et Y.

En espérant avoir une aide de votre part.

Fabien

 

Hi @FDO31 

I try to reproduce the behavior, 

vxiaotang_0-1634798309317.png

however, in my test, the value [Target 0%] didn't sum up in the visual, could you share a sample file? and we'll test it to find the reason. Thanks

 

Kindly note: you can remove unrelated data, or replace the raw data with bogus data to protect your sensitive information.

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-xiaotang 

 

J'ai enfin trouvé la solution ! J'ai juste recréer les datas dans un nouveau fichier Excel et lié ces datats au fichier Power BI. Ensuite j'ai juste sélctionner le minimum pour chaque Target% et non en somme. C'était en fait tout simple je suis désolé du dérangement et merci infiniement pour votre temps.

Je m'obstiné à le faire avec la somme des Targets comme le fichier d'un collègue mais je n'arrive pas à obtenir les mêmes résultats que lui. J'ai donc tout repris à zéro et fait plus simplement.

Merci encore @v-xiaotang !

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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