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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Help Needed to create DAX

Hi ,

 

I need your help to create a report. I have q requirement in which user will select an event then user will selected some static number between  to 3. For example, user has selected event number - 19 and then in second slicer user selected 2. So, i need to display total 3 lines in line graph which will show the attended participants month wise for event 19 (which selected from event slicer) and previous 2 events (number selected from second slicer). So my graph should have 3 lines (19,18,17). I have FactTable (Event Attended by Participants), EventEdition. Both tables having join (one to many) on ROW_ID from Event Table and Event Edition Wid from Fact Table and third tables contanis the static records(1,2,3) not having any join.

 

Can someone help to create a proper DAX? I have created below measure to get the result but it is giving only seleted event data.

 

# Unique Registered Contacts =
VAR MaxEvent = [Selected Event]
VAR MinEvent = MaxEvent - [Selected No of Events]
RETURN
IF(VALUES('Event Edition'[Event Edition])>= MinEvent && VALUES('Event Edition'[Event Edition]) <= MaxEvent,DISTINCTCOUNT( 'Fact-Registrations'[Contact Wid] ),BLANK())
Screenshot.png

Thanks in advance.

-S

 

1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

You might consider creating pbix file that will contain some sample data, upload the pbix to onedrive or dropbox and share the link to the file. Please do not forget to describe the expected results based on this sample data.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors