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
gtamir
Post Patron
Post Patron

filter a summarised table by date

Hi, I have a summarised table based on the transaction table.

Then I have a page with visuals using measures based on the summarised table.

Now I want to filter the visuals to one month only. Is it possible?

ScreenHunter_017.jpg

9 REPLIES 9
Greg_Deckler
Super User
Super User

Depends but should be possible. However, a definitive answer would require additional information. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

You can join your summarized table to your Calendar table and filter ?

@amitchandak How? there is no common field.

Does that table has Month, Then use that as a filter. I think I am confused now. Please explain the issue with an example.

All the visuals are based on measures

ScreenHunter_018.jpgScreenHunter_017.jpg

Right, but we have no idea what your measure formulas are so kind of hard to know if they would respond to filters by month.

 

But in any case, try changing the Cross filter direction between your circled table and your Tipulim table to Both. Even though there is no common field between the tables, if Calendar filters Tipulim and Tipulim filters your circled table, then Calendar ultimately filters your circled table. 

 

The other thing that you can do is to build the relationship directly into the measure. In other words, use something like:

VAR __Month = MAX('Calendar'[Month])

 

You put that in your measure and now you can use ___Month variable within your measure to do filtering, etc.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I continued to investigate.

I put on the visual of the filtered page all the fields of "RunningTotalByMetupalim". The table is filtering the names for the last month,

but the column "Total" gives the total of all the unfiltered table. This is why all the table is wrong.

The summarised table is: 

RunningTotalByMetupalim = SUMMARIZECOLUMNS(Tipulim[Metupal Name], "TOTAL" , SUM(Tipulim[Total]))
 

@Greg_DecklerI did the first thing, it filters but wrongly. The number of customers is correct, but other values are wrong. I think it will never work.

You see, the summarised table contains other calculated columns based on the original transactions table. They will not be filtered.

I think I will have to do a different project every month.

What do you say?

ScreenHunter_020.jpg

Have you created a separate measure table and referring to that.  This means a dummy table with the only measure.

In that, case your measures will respond to the filter of the tables they belong too.

 

If you have created a summarized table without a date or month, then you have to create it with a date. You can take month start date to group data at month level and join it with the date table.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.