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
Anonymous
Not applicable

Parameters - Graph two series in a chart following the same parameter

Hi, i want to display in a chart the weekly evolution of two measures:

Q Service Suscriptions =
COUNT('Suscriptions and Unsuscriptions'[Identifier])

Q Service Unsuscriptions =
COUNT('Suscriptions and Unsuscriptions'[UnsuscriptionDate])

I want to display this two series in a line chart with the possibility of selecting two visions:
.Weekly Total

.Cumulative Total

 

For the cumulative total I ´ve created another measure:

Cumulative suscriptions =

CALCULATE(
[Q Service Suscriptions],
FILTER(
ALL('Suscriptions and Unsuscriptions'),
'Suscriptions and Unsuscriptions'[SuscriptionDate] <= MAX('Suscriptions and Unsuscriptions'[SuscriptionDate])
         )

)

 

I want to create a parameter to select between the weekly total and the cumulative total, but

I don´t know how to create a single parameter to show the two series.

 

Thank you so much!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , You can create two measures and switch them using field parameters

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
https://www.youtube.com/watch?v=pnAesWxYgJ8

 

 

Running Total/ Cumulative:
https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=42

Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f

 

 

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9afd
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE

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.