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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
ramie
Frequent Visitor

Need 1 date to filter

Hi Everyone,

i have a problem with different dates , i am unable to fix those , need community help.

The scenario is , i have  more that 5 dates available in one table, other tables not important. But in that 1 table i have 5 different dates , i have used  one date for finding employee of the  month and year as well , i have completed calulation part here, but i need to count some codes which falls under other date range , so i need only one date column or table filterall the data in the report.

is there any solution.

ramie_0-1668062363023.png

ramie_2-1668062396732.png

 

 

I have created date table also , but realtionship problem, in past i have created measures and all on basis of one date column , now i tried to creating relationship using that column , getting error ,

one relatioship is fine which is woend date column to dim date column and another is xtradate01 to date getting error in measure level becaues i established a relationship from xtradate01 to date , immediately error is getting

ramie_4-1668062817603.png

 

ramie_3-1668062719669.png

How can i fix all these in one shot , any solution or way to solve this

Your Efforts will be much appriciated

Thanks in Advance

2 REPLIES 2
amitchandak
Super User
Super User

@ramie , You can try a single date table with inactive joins and userelationships

 

example

calculate( SUM(Sales[Sales Amount]),USERELATIONSHIP ('Sales'[CreateDate], 'Date'[Date]))

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

i have created a measure using userelationship with inactive joins, but like i mentioned above , this error  i am getting , formula giving error

ramie_0-1668131578222.png

if i create a relationship between xtradate1 column to date column , with an in active relationship , above formula showing error , other wise i can use userelationship or crossfilter also if need.

 

Doubt : After creating inactive relationship is dim date table able to filter both dates underlying informations with only dim date slicer selection. i don't want multiple date slicers in my report to filter data, 1 date slicer need to filter all the data in report.

 

Please let me know any suggestions

Thanks

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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