cancel
Showing results for
Did you mean:

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

Frequent Visitor

## Get column based on date and title

Hello,

I have a question. I want to get the value of "visit24hrs" for today for each title in my report. I try to use this formula:

result = CALCULATE(SUM(AnalyticsView[Visits24h]), FILTER(ALL( AnalyticsView), (today() = AnalyticsView[Date])))

In my chart I use for Y Title and for X result.
But now I get the same number (the summed result) for each Title.
Question: How can I display the result for each item in my chart? Without the "sum" in the formula I am not able to use Visits24hrs in the measure (it says it can not regognize the column)

Best wishes,
Anna
1 ACCEPTED SOLUTION
Super User

are you expecting something like:

``````result =
MAXX(
FILTER(
ALL(AnalyticsView),
AnalyticsView[Date] = TODAY()
),
AnalyticsView[Visits24h]
)``````
4 REPLIES 4
Super User

You use this as a calculated column, right?

result = CALCULATE(SUM(AnalyticsView[Visits24h]), FILTER(ALL( AnalyticsView), (today() = AnalyticsView[Date])))

Proud to be a Super User!

Super User

are you expecting something like:

``````result =
MAXX(
FILTER(
ALL(AnalyticsView),
AnalyticsView[Date] = TODAY()
),
AnalyticsView[Visits24h]
)``````
Frequent Visitor

I added another filter (for the distinct items) and now it works with your code. thank you!!

Frequent Visitor

Hello,

Now I get the max value of my visits24hr over all items ... so in my chart it is displaying the same number for every item (which is not correct....)
But thank you for your try to help me 🙂

Announcements

#### New forum boards available in Real-Time Intelligence.

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

#### Power BI Monthly Update - May 2024

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

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors