Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
We have a data as below, so I would like to calculate the % based on status (R) availability with in a week
For ex for the meter number 214243107 then R available 4 times in a week, so the cal will be 4/7*100, same way need to display % for othres
Format needs to be displayed exactly below , will this possible by wringing some DAX measure ??
Thanks, Kim for sharing the file and it's really helpful to understand the code & intermediate tables to solve the issue
thanks, Kim for the details
here we are extracting different weeks' data, if we select the next week then it should display all dates for that week.
tried to generate an intermediate table based on the main data as you pointed.
2. without seq used these columns in measures then it's given weird numbers.
Result measure : =
VAR _connectingtable =
TREATAS ( VALUES ( Columns_2[Date] ), Data[Date] )
VAR _rcount =
CALCULATE ( COUNTROWS ( Data ), Data[Value] = "r" )
VAR _allcount =
COUNTROWS ( Data )
RETURN
SWITCH (
SELECTEDVALUE ( Columns_2[Column] ),
"%", DIVIDE ( _rcount, _allcount ) * 100,
CALCULATE ( SELECTEDVALUE ( Data[Value] ), _connectingtable )
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |