cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
F-Wil
Frequent Visitor

Line plot with two measure

Hello, I have create two measure with the following DAX:

Dynamic indes:

Index_Measur 2 =
CALCULATE (
COUNTROWS ( Tabelle1 ),
FILTER ( ALLSELECTED ( Tabelle1 ), Tabelle1[Faktor 1] < MAX ( Tabelle1[Faktor 1] ) )
)

and a moving average
 
Moving Average_Measure IndexMeasure =
VAR Window_A = 10
VAR myResult =
SUMX(
FILTER(
Tabelle1,
Tabelle1[Index_Measur 2]> Tabelle1[Index_Measur 2]-Window_A &&
Tabelle1[Index_Measur 2] <=Tabelle1[Index_Measur 2]
),Tabelle1[Wert]
)
RETURN CONVERT(myResult/Window_A,DOUBLE)
 
My simple question:
How can I visually represent the data in a (e.g. line plot)?
 
 Thank you
 
3 REPLIES 3
amitchandak
Super User
Super User

@F-Wil , You can use them both on Y-axis/Values in a line visual. If you need a single value for one line then you can use that in the analytics pane Constant Line - > Fx.

 

What is the challenge you are facing when you add two measures?



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

The problem is that I cannot drag the measure onto the x-axis or y-axis. They are not accepted by the visual.

Hi, @F-Wil 

Currently you cannot place measure fields on axixs.

If possible, please try creating a new table or calculated column.

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 25

Ted's Dev Camp - August 25, 2022

Watch Session 25 of Ted's Dev Camp.

Top Solution Authors