Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all
How could I get a dax measure like the one below I did in excel?
Here is the table:
| Topic | Impact | % |
| ABC | High | 75.00% |
| ABC | High | 75.00% |
| ABC | High | 75.00% |
| ABC | Medium | 25.00% |
| Test | Low | 25.00% |
| Test | High | 25.00% |
| Test | Medium | 50.00% |
| Test | Medium | 50.00% |
I tried something like this but it's not working
Count Ifs =
DIVIDE(
CALCULATE(
COUNTROWS('Heatmap'),
FILTER(
'Heatmap',
'Heatmap'[Risk] = EARLIER('Heatmap'[Risk]) && 'Heatmap'[Risk] = EARLIER('Heatmap'[Risk])
)
),
CALCULATE(
COUNTROWS('Heatmap'),
FILTER(
'Heatmap',
'Heatmap'[Risk] = EARLIER(Heatmap'[Risk])
)
)
)
Please click on the image to see bigger.
Thanks.
PCT =
CALCULATE( COUNTROWS( Data ) )
/ CALCULATE( COUNTROWS( Data ), ALLEXCEPT( Data, Data[Topic] ) )
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Hi @ThxAlot
I used the dax in the real dataset and got 25% each:
What should happen is: 50%, 25%, 25%, 50%
50% meaning 2 rows out of 4 rows are High
1 out of 4 rows is low
1 out of 4 rows is blank
How can I fix it?
Thanks.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Expected result CC =
VAR _topic =
COUNTROWS ( FILTER ( Data, Data[Topic] = EARLIER ( Data[Topic] ) ) )
VAR _impact =
COUNTROWS (
FILTER (
Data,
Data[Topic] = EARLIER ( Data[Topic] )
&& Data[Impact] = EARLIER ( Data[Impact] )
)
)
RETURN
DIVIDE ( _impact, _topic )
Hi,
is this written for a measure or a calculated column?
My sample solution is, as mentioned above, for calculated column.
Thanks.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |