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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Syndicate_Admin
Administrator
Administrator

Creating filter by date for another segmenter

Hello everyone! my name is Nicholas, and I'm new to the world of data. I am already finishing lic. in Administration and I wanted to expand my horizons by taking a Course in Data Analytics. I am already at the end of this, and therefore I have to deliver my final project, for which I have chosen the theme of COVID-19.
My idea is to have two main segmenters in the form of a drop-down menu for each section (Global and Argentina), for this in the case of Argentina

foropowerbi1.png

He created this measure that responds to the selection of "Positive Cases" or "Deaths". Now my drawback is to achieve a measure that works by selecting each option and filtering the previous segmenter, in relation to the temporalities that the menu breaks down.

foropowerbi2.png

As for my tab referring to the global analysis meets the same format but the main segmenter is as follows

powerbi3.png

Thank you very much for your time.

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Syndicate_Admin 

 

Can you provide some sample data or simple pbix files? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.

 

Best Regards,

Community Support Team _Charlotte

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

Hello! I was able to solve it, inquiring online I could find the following format. I attach it in case someone finds themselves in the same situation, I modify certain parts for a better compression. Thank you very much for your predisposition!

Segmentador Temporal =
WHERE ColumnaSeleccionada = SELECTEDVALUE('Segmenter Table' [Segmenter])
RETURN
SWITCH(ColumnaSeleccionada, "Accumulated", 'Measure'[Accumulated],
"Last year", 'Measure'[Last year],
"Last month", 'Measure'[Last month],
"Last week", 'Measure'[Last week])

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.