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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Create a dax formula to show selected quarter after removing all filters from date table

Hi All,

i am new to powerbi. i am strugling to build a dax expression that will show Selected quarter value . but before that i want to clear all filers applied on date table. could you please help me. thanks.

 

Arnab

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi All, thanks for helping me to crack this logic. i might not be able to clarify my challenge. Anyway i tried this logic

TT Quarter = CALCULATE( SELECTEDVALUE(Fact_Energy[YearQuarter]),CROSSFILTER ( 'Date'[Date], Fact_Energy[Full Date], NONE ))  and It Worked😀. basically i diasbled the relationship bitween fact and dim table.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi All, thanks for helping me to crack this logic. i might not be able to clarify my challenge. Anyway i tried this logic

TT Quarter = CALCULATE( SELECTEDVALUE(Fact_Energy[YearQuarter]),CROSSFILTER ( 'Date'[Date], Fact_Energy[Full Date], NONE ))  and It Worked😀. basically i diasbled the relationship bitween fact and dim table.

Anonymous
Not applicable

arnab1995_0-1646334808169.png

arnab1995_1-1646335158772.png

 

Hi @Samarth_18 , please take a look at these pictures. i took slicer for Quarter (field taken from Dim_calendar) and and line chart(both sales & quarter fields taken from fact_sales table). here based on a selected quarter year from slicer i will get sales for last 3 quarters. Now i created a tooltip that will show quarter year when i hover on the line chart. but i can only see the quarter year on tooltip which is selected on the slicer, other quarter years are showing blank .

is there any way to create a dax expression that will remove any slicer selection , allow me to see all quarter year when i hover on the chart? 

Hi:

All your date fields should come from your Calendar Table, even the sales quarter should just be quarter. The Calendar table should be marked as Date Table too and have one to many relationship with your fact table.  I'm not sure what the rest of your question is, can you rephrase it?

Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

Could you please share the sample data in text format with the expected output.

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors