TOPN 1 Power BI - powerbi

[![enter image description here][1]][1]
Hello, Everyone. Good Night!
I need some help. I made a Measure which supposedly, would bring the TOP1 based on [19] measure.
The simple image brings the result correctly, but the card with director's name brings the Todd Phillips, who, as you can see in the table below, is the TOPN2.
How Can I solve this?

Related

Having trouble getting a cumulative saving measure for a plot in PowerBi

As the title says, I can't sum [savings] cumulatively. My total savings measure only plots monthly saving not cumulative. Any help with the Dax for the measure would be greatly appreciated, I've tried a lot of solutions online to no avail.
Cheers
Power BI has a Quick Measure "Running Total" that is provided for exactly this purpose. Make sure you have a separate Date table and use that in the Field section.

Power Bi DAX - sum with filters

I am a Power Bi beginner, trying to solve the following issue.
I have got the following table:
enter image description here
I would like to get this result :
enter image description here
Basically the new measure should show sums for each project forecast.
Any help will be appreciated.
To get the final table you have to choose Table on Visualizations and organize columns in this way (see the screenshot). Then right click on Forecast in Values and check Don't summarize.
If it doesn't help, please check the data types.

My DAX Measure for Custom Conditional Formatting In Power BI is not clickable

Please I need help with my Power BI custom conditional formatting. I created a DAX measure to help me color names of employees that are found in more than one team in day in Power Bi Matrix.
I tried applying the measure in conditional formatting but the measure is grayed out and not clickable. the image is attached below
The measures for formatting
The DAX measure is below.
Technician Grouping = IF(SELECTEDVALUE('Technicians Name'[Names]) IN
ALLSELECTED('view_register_teams'[team_number]), "#500805")
Thank you.
In the image you have posted, use the "Rules" option in place of "Field Value"

Last Year Measure not displaying on grid when filtered

I am developing a dashboard on Power BI and i need to create a last year measure based on column FIELD MEASURE. The time level of the tale is DAY_ID (date), so i made a measure using
CALCULATE(TABLE1 [FIELD_MEASURE],SAMEPERIODLASTYEAR(TABLE1[DAY_ID].[Date]))
But when i try to filter based on a integer column called cd_mes the new metric just doesnt display on the grid. What could be the problem? The image is a little DER to help understand the problem.
Thanks in advance!
Sorry if my english is not good enough to understand the problem.
I think you are missing to use SUM() inside of CALCULATE()
Try:
CALCULATE(SUM(TABLE1[FIELD_MEASURE]),SAMEPERIODLASTYEAR(TABLE1[DAY_ID].[Date]))
or
CALCULATE(SUM(TABLE1[FIELD_MEASURE]),DATEADD(TABLE1[DAY_ID].[Date],-1,YEAR))

How to calculate a hierarchy level in Dax?

I need some help with a dax measure. Below you see a matrix in Power BI Desktop. What I want is to calculate the ratio of the Sum(of 0 and 1 level) divided by the measure [Total Salg vekt], which I already has calculated. But I am struggling getting the sum of the second level of my product hierarchy. I don't want to calculate level 1 or 3 in the hierarchy.
My hierarchy is located in my Product table and is named like this
Products
- Category
- Code
- SubCategory
Can any of you show a dax code that my work as described above?
Thanks
Regards Geir
I have bad news:
There's no hierarchy in DAX.
You'll have to use different filters in order to achieve what you want.
Complete explanation is in here:
https://www.sqlbi.com/articles/clever-hierarchy-handling-in-dax/
And yes, it is not simple, but it answer your question.